uva 10098
来源:互联网 发布:mac超清桌面壁纸 编辑:程序博客网 时间:2024/05/16 10:51
题意:都是生成排列的,用 next_permutation(),排序前,先保证他是最小序列
#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using namespace std;char a[15];int main(){int t;scanf("%d",&t);getchar();while (t--){gets(a);int len = strlen(a);sort(a,a+len);do{for(int i = 0 ; i < len ; i++)cout<<a[i];cout<<endl;}while (next_permutation(a,a+len));printf("\n");}return 0;}
- UVA 10098
- uva 10098
- uva 10098
- uva 10098
- UVA 10098
- UVa 10098 Generating Fast
- uva 10098 - Generating Fast
- UVa 10098 Generating Fast
- uva 10098 - Generating Fast
- UVa 10098 - Generating Fast
- uva GeneratingFastSortedPermutation 10098
- UVa 10098 Generating Fast
- Uva 10098 - Generating Fast
- UVA 10098 - Generating Fast
- UVa 10098 - Generating Fast
- uva 10098 - Generating Fast
- UVA 10098 (13.07.18)
- UVa 10098: Generating Fast
- The constructor Date() is undefined问题的处理
- MFC在状态栏的窗格上显示进度栏
- 请求Url的json数据
- 整型
- 计算加减运算
- uva 10098
- POI读写海量Excel
- 求当前时间与当天零点的秒差。
- HDU 1496 Equations(hash or 二分)
- Assemble(王爽)——写在前面
- 非归档模式下恢复数据文件浅析
- C++远程关机API
- 最短路--floyed-warshall算法poj1125
- POI操作Excel2007实例二之“SXSSFWorkbook”处理海量数据