uva10098 Generating Fast, Sorted Permutation
2013-07-20 20:19
417 查看
uva10098 Generating Fast, Sorted Permutation
全排列水题#include <algorithm> using namespace std; #include <stdio.h> #include <string.h> int t; int i; char sb[25]; int main() { scanf("%d", &t); getchar(); while (t --) { gets(sb); sort(sb, sb + strlen(sb)); printf("%s\n", sb); while(next_permutation(sb, sb + strlen(sb))) { printf("%s\n", sb); } printf("\n"); } return 0; }
相关文章推荐
- UVa10098 Generating Fast, Sorted Permutation
- Generating Fast, Sorted Permutation
- UVA 10098 Generating Fast, Sorted Permutation
- uva--10098--Generating Fast, Sorted Permutation
- uva 10098 Generating Fast, Sorted Permutation
- uva GeneratingFastSortedPermutation 10098
- UVA 10098 Generating Fast, Sorted Permutation(全排列)
- Generating Fast, Sorted Permutation
- uva10098 Generating Fast, Sorted Permutation
- UVA10098 Generating Fast【全排列】
- uva10098 - Generating Fast(快速生成有序排列)
- LeetCode 31.Next Permutation & 33.Search in Rotated Sorted Array
- Remove Duplicates from Sorted List II simple and fast
- 10098 - Generating Fast暴力题 没啥可说的
- uva 10098 Generating Fast(全排列)
- UVa 10098 - Generating Fast STL 排序+排列
- uva 10098 - Generating Fast(全排列)
- UVA - 10098 Generating Fast (全排列)
- UVa 10098 Generating Fast (全排列生成)
- uva 10098 Generating Fast(全排列)