백준
[1427] 소트인사이드
Jcoder
2018. 7. 14. 17:42
#include <iostream>#include <algorithm>#include <cstring>using namespace std;bool cmp(char &a, char &b){return a > b;}int main(){char c[10];cin >> c;sort(c, c+ strlen(c), cmp);cout << c;return 0;}