728x90
반응형
SMALL
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
string solution(string my_string) {
string answer = "";
for(auto str : my_string){
if(isupper(str))
answer+=tolower(str);
else answer+=str;
}
sort(answer.begin(),answer.end());
return answer;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
[프로그래머스] 가장 큰 수 찾기 (0) | 2025.09.06 |
---|---|
[프로그래머스] 약수 구하기 (0) | 2025.09.06 |
[프로그래머스] 인덱스 바꾸기 (0) | 2025.09.05 |
[프로그래머스] 대문자와 소문자 (0) | 2025.09.05 |
[프로그래머스] 암호 해독 (0) | 2025.09.05 |
댓글