hdu Ignatius and the Princess II_STL next_permutation的用法
来源:互联网 发布:电脑时光秘书软件 编辑:程序博客网 时间:2024/05/17 06:51
水题一道,练习STL
#include<iostream>#include<algorithm>using namespace std;int main(){ int a[10001]; int m,n; int i,sum; while(cin>>m>>n) {sum=1; for(i=1;i<=m;i++) a[i]=i; while(sum<n) {next_permutation(a+1,a+1+m); sum++;} for(i=1;i<=m;i++) {if(i==1) cout<<a[i]; else cout<<" "<<a[i]; } cout<<endl; }return 0;}
0 0
- hdu Ignatius and the Princess II_STL next_permutation的用法
- next_permutation & prev_permutation & hdu 1027 Ignatius and the Princess II
- HDU 1027 Ignatius and the Princess II (next_permutation)
- HDU 1027--Ignatius and the Princess II【next_permutation】
- HDU 1027 Ignatius and the Princess II(stl,next_permutation)
- HDU 1027 Ignatius and the Princess II【STL- next_permutation全拍列】
- HDU 1027 Ignatius and the Princess II 【next_permutation(a,a+n)的应用】
- HDU 1027 Ignatius and the Princess II(next_permutation()的应用)
- Ignatius and the Princess II( next_permutation() )
- Ignatius and the Princess II (HDU 1027) ——next_permutation排列函数
- HDU——1027Ignatius and the Princess II(next_permutation函数)
- HDU.1027 Ignatius and the Princess II【全排列:关于next_permutation问题】(3.14)
- HDU 1027 Ignatius and the Princess II next_permutation函数(也可以用DFS......)
- HDU 1027 Ignatius and the Princess II(全排列next_permutation函数)
- HDU1027 Ignatius and the Princess II 【next_permutation】【DFS】
- HDOJ 1027 Ignatius and the Princess II - next_permutation函数
- HDUOJ 1027 Ignatius and the Princess II(next_permutation)
- HDOJ--1027--Ignatius and the Princess II(利用next_permutation函数去做的)
- VS中如何去掉字符串操作函数的警告信息 _CRT_SECURE_NO_DEPRECATE
- c#开发中执行adb命令
- Anroid HOOK Method(Native 层)
- Android Bundle类
- android 时间格式 各种转换
- hdu Ignatius and the Princess II_STL next_permutation的用法
- ZOJ3776:Pokemon Master
- Android详细的对话框AlertDialog.Builder使用方法
- 题目2 : K-th string
- 省赛总结
- linux read 用法
- sdfggcc
- parse_str与http_build_query的使用
- 使用 CocoaPods 管理依赖库