링크 : https://www.acmicpc.net/problem/1427
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
string s;
cin >> s;
vector<int> v;
for(int i = 0; i < s.size(); i++){
v.push_back(s[i] - '0');
}
sort(v.begin(), v.end(), greater<int>());
for(int i = 0; i < v.size(); i++){
cout<<v[i];
}
return 0;
}