Advertisement
Josif_tepe

Untitled

Mar 18th, 2022
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4. int main() {
  5.     string s;
  6.     cin >> s;
  7.    
  8.     sort(s.rbegin(), s.rend());
  9.     cout << s << endl;
  10.    
  11.     return 0;
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement