바킹독 알고리즘 문제집 - 배열
·
알고리즘/Algorithm
그동안 정리는 계속 하고있었는데 강의 정리를 올리는 건 아닌거 같아서,,, 푼 문제만 업로드 하기로 했다~ 노션을 공개로 돌리기에는 다른 것들이 너어어무 많아서..ㅎㅎ https://github.com/encrypted-def/basic-algo-lecture GitHub - encrypted-def/basic-algo-lecture: 바킹독의 실전 알고리즘 강의 자료 바킹독의 실전 알고리즘 강의 자료. Contribute to encrypted-def/basic-algo-lecture development by creating an account on GitHub. github.com 백준 10808번 : 알파벳 갯수 내가 푼 것 #include #include using namespace std; i..
SW Academy D1 -2
·
알고리즘/Algorithm
2050. 알파벳을 숫자로 변환 #include #include #include using namespace std; int main(void){ string str; cin>>str; for(int i=0;i
SW Academy D1 -1
·
알고리즘/Algorithm
2072. 홀수만 출력하기 #include using namespace std; int main(int argc, char** argv) { int test_case; int T,n; cin>>T; for(test_case = 1; test_case n; if(n%2==1) sum+=n; } cout
Algorithm C++ [220118] :: Greedy - 2 (이것이 코딩테스트다 학습 정리) ... 추가 수정 예정...
·
알고리즘/Algorithm
난이도 하 Greedy ✔ min, max, minmax function in C++ {}를 사용하여 3개 이상 값들에 대해서도 최대, 최소값을 구할 수 있음 vector 같은 container에 저장되어 있다면, max_element, min_element func 사용 가능 #include #include int main(void){ int a,b; int result; cin>>a>>b; result = max(a,b); // a,b 중 큰 값 반환 cout >> result >> endl; } ✔ Class를 min, max에 넣는 방법 => operator< 재정의 필요! 예제 참고 :: https://blockdmask.tistory.com/366 #include #include #includ..
TaffyMuffin
'알고리즘' 카테고리의 글 목록 (3 Page)