Advertisement
Josif_tepe

Untitled

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