1 solutions

  • 0
    @ 2025-11-5 19:49:51

    C++ :

    #include<cstdio>
    #include<cstring>
    #include<algorithm>
    using namespace std;
    
    int main()
    {
    	char s[7];
    	while(scanf("%s",s)!=EOF)
    	{
    		do
    		{
    			puts(s);
    		}while(next_permutation(s,s+strlen(s)));
    		puts("");
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    19719
    Time
    1000ms
    Memory
    32MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By