카카오 인턴십 (1) 썸네일형 리스트형 신규 아이디 추천 - 미해결... #include #include #include #include #include // 특정 문자 제거를 위한 라이브러리 using namespace std; string solution(string new_id) { string answer = ""; string str_lower; // 1 단계 : 대문자 -> 소문자 for(int i=0; i= 'A' && new_id.at(i) = 'a' && cCheck = '0' && cCheck = 1) { if(str_cpy[idx-1] == '.' && str_cpy[idx] == '.') { str_cpy.replace(str_cpy.find(find_str), find_str.length(), replace_str); idx--; } } idx++; }.. 이전 1 다음