Language/C++

[C++ / 백준 1427] 소트인사이드

ej503 2021. 8. 4. 16:35

#include <iostream>
#include <algorithm>
using namespace std;

int main() {
    string str;
    cin >> str;
    sort(str.begin(), str.end(), greater<int>());
    cout << str;
}

 

'Language > C++' 카테고리의 다른 글

[C++ / 백준 10828] 스택  (0) 2021.08.09
[C++ / 백준 10872] 팩토리얼  (0) 2021.08.05
[C++ / 백준 10989] 수 정렬하기 3  (0) 2021.08.03
[C++ / 백준 2751] 수 정렬하기 2  (0) 2021.08.02
[C++ / 백준 2750] 수 정렬하기  (0) 2021.07.30