UVA 10098 - Generating Fast UVA • Aug 31, 2020 Problem PDFSolution:#include #include #include using namespace std; int main() { char a[20]; int n,t,k; scanf ("%d", &t); while (t--) { scanf("%s",a); n=strlen(a); if(n>10) break; sort(a,a+n); puts(a); while(next_permutation (a,a+n)) puts(a); printf("\n"); } return 0; } https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10098/10098.cpp Tags UVA Competitive Programming Shipu Ahamed Recommended for you UVA UVA 913 - Joana and the Odd Numbers 4 years ago • 1 min read UVA UVA 871 - Counting Cells in a Blob 4 years ago • 3 min read UVA UVA 866 - Intersecting Line Segments 4 years ago • 3 min read