Advertisement
Josif_tepe

Untitled

Nov 5th, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <queue>
  3. #include <vector>
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7. int main() {
  8.     string s = "123";
  9.    
  10.     do {
  11.         cout << s << endl;
  12.     } while(next_permutation(s.begin(), s.end()));
  13.    
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement