hdu 1027 Ignatius and the Princess II
来源:互联网 发布:手机支付宝软件 编辑:程序博客网 时间:2024/06/04 18:45
之前不用stl,代码敲了n久。。。。
不得不说,stl真是个好东西,有了它,很多步骤都能方便很多了
#include<stdio.h>#include<string.h>#include<algorithm>using namespace std;int ans[10005];int main(){int n,m,i;while(scanf("%d%d",&n,&m)!=-1){for(i=0;i<n;i++)ans[i]=i+1;while(--m)next_permutation(ans,ans+n);printf("%d",ans[0]);for(i=1;i<n;i++)printf(" %d",ans[i]);printf("\n");}return 0;}
- hdu 1027 ignatius and the princess ii
- HDU 1027 Ignatius and the Princess II
- HDU 1027 ( Ignatius and the Princess II )
- HDU 1027 Ignatius and the Princess II
- HDU 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- Ignatius and the Princess II hdu 1027
- HDU 1027 Ignatius and the Princess II
- HDU 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- HDU 1027 Ignatius and the Princess II
- HDU 1027 Ignatius and the Princess II
- HDU 1027 Ignatius and the Princess II
- hdu 1027 Ignatius and the Princess II
- I~Matrix(13.7.11)
- Android Preferences!
- C++格式化输入输出
- 超酷的实时颜色数据跟踪javascript类库 - Tracking.js
- Java几款性能分析工具的对比
- hdu 1027 Ignatius and the Princess II
- Radix TRee
- android UI学习笔记(布局)
- memset()函数
- 虚拟机下如何安装ISP编程下载器(或JTAG仿真器)
- Cocos2d-x中的draw绘制
- Matlab学习笔记三:绘图
- 1011. World Cup Betting (20)-PAT
- zedboard---------在主机Ubuntu下面建立和开发板(busybox文件系统)通信的网络文件系统