#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
int main() {
char str[256];
int len;
cin>>str;
len=strlen(str);
sort(str,str+len);
do cout<<str<<endl; while (next_permutation(str,str+len));
return 0;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment