프로그래머스

코딩테스트/프로그래머스(C++)_Level.0

[프로그래머스] Lv.0 문자열 겹쳐쓰기

문제 코드 #include #include #include using namespace std; // 내 풀이 string solution(string my_string, string overwrite_string, int s) { int index = 0; for (int i = s; i < overwrite_string.size() + s; ++i) { my_string[i] = overwrite_string[index++]; } string answer = my_string; return answer; } /* 다른 사람 풀이 string solution(string my_string, string overwrite_string, int s) { string answer = ""; answer = ..

코딩테스트/프로그래머스(C++)_Level.0

[프로그래머스] Lv.0 홀짝 구분하기

문제 코드 #include using namespace std; int main(void) { int n; cin >> n; cout

코딩테스트/프로그래머스(C++)_Level.0

[프로그래머스] Lv.0 문자열 돌리기

문제 코드 #include #include using namespace std; int main(void) { string str; cin >> str; for (const auto c : str) { cout

코딩테스트/프로그래머스(C++)_Level.0

[프로그래머스] Lv.0 문자열 붙여서 출력하기

문제 코드 #include #include using namespace std; int main(void) { string str1, str2; cin >> str1 >> str2; cout

mane
'프로그래머스' 태그의 글 목록 (16 Page)