?????
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; int main() { char s[200]; scanf("%s", s); sort(s, s + strlen(s)); puts(s); while (next_permutation(s, s + strlen(s))) puts(s); return 0; }View Code
1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 int main() 6 { 7 char s[200]; 8 scanf("%s", s); 9 sort(s, s + strlen(s)); 10 puts(s); 11 while (next_permutation(s, s + strlen(s))) 12 puts(s); 13 return 0; 14 }View Code
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; int main() { char s[200]; scanf("%s", s); sort(s, s + strlen(s)); puts(s); while (next_permutation(s, s + strlen(s))) puts(s); return 0; }View Code
1 #include <cstdio> 2 #include <cstring> 3 #include <algorithm> 4 using namespace std; 5 int main() 6 { 7 char s[200]; 8 scanf("%s", s); 9 sort(s, s + strlen(s)); 10 puts(s); 11 while (next_permutation(s, s + strlen(s))) 12 puts(s); 13 return 0; 14 }View Code