HDU 1028 Ignatius and the Princess III
来源:互联网 发布:nginx upstream是什么 编辑:程序博客网 时间:2024/05/18 02:12
#include <iostream>using namespace std;int main(){ int a[122][122],n,i,j; memset(a,0,sizeof(a)); a[1][0]=1; a[1][1]=1; a[2][0]=2; a[2][1]=1; for(i=3;i<=120;++i) { for(j=i/2;j>=1;--j) { a[i][j]=1+a[i-j][j]+a[i][j+1]; } a[i][0]=1+a[i][1]; } while (cin>>n) { cout<<a[n][0]<<endl; } return 0;}
- hdu 1028 Ignatius and the Princess III
- HDU 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- HDU 1028 Ignatius and the Princess III
- HDU 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- HDU-1028-Ignatius and the Princess III
- HDU 1028 Ignatius and the Princess III
- HDU 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- hdu 1028 Ignatius and the Princess III
- HDU--1028 Ignatius and the Princess III
- HDU 1028 Ignatius and the Princess III
- Ignatius and the Princess III hdu 1028
- 8月新作1
- 8月新作2
- 字节序
- 8月新作3
- shell tr
- HDU 1028 Ignatius and the Princess III
- 关于返回函数内部new分配的内存的引用
- Memcache基础教程
- 【100题】第五十九题 用C++编写不能被继承的类
- POJ 1818(贪心)
- SSL VPN (原理三 重协商)
- 又一次穿越疯人院
- 今天文化培训结束了
- javascript url 参数传递中的特殊字符