hdoj1028
来源:互联网 发布:29周胎儿发育标准数据 编辑:程序博客网 时间:2024/06/10 19:32
#include<stdio.h>#define MAX 120main(){int n;int count[MAX+1][MAX+1];int i,j,k;int min;count[0][0]=1;count[1][1]=1;while(scanf("%d",&n)!=EOF){for(i=2;i<=n;i++){for(j=1;j<i;j++){min=(i-j<j)?(i-j):j;count[i][j]=0;for(k=1;k<=min;k++)count[i][j]+=count[i-j][k];}count[i][j]=1;}count[0][0]=0;for(j=1;j<=n;j++) count[0][0]+=count[n][j];printf("%d\n",count[0][0]);}}
0 0
- hdoj1028
- hdoj1028
- hdoj1028
- hdoj1028;他们说这题叫dp...
- HDOJ1028解题报告
- HDOJ1028 Ignatius and the Princess III
- HDOJ1028(正整数拆分-普通型母函数模板)
- 母函数之Ignatius and the Princess III hdoj1028
- hdoj1028 Ignatius and the Princess III(整数分解)
- hdoj1028 Ignatius and the Princess III (母函数-整数拆分)
- hdoj1028 Ignatius and the Princess III(母函数,生成函数)
- JS中的prototype
- 《Qt Quick核心编程》勘误
- 关于2003Server下IIS运行.net程序IE无法访问出现403.1错误的解决过程
- 【BZOJ】【P1964】【hull 三维凸包】【题解】【计算几何】
- Node.js的模块载入方式与机制
- hdoj1028
- 2014 BDTC 参会有感
- 游标那点事儿
- mysqlbinlog 导出日志 乱码 sql
- 分数加减法
- 黑马程序员_java_反射
- IOS照相机的使用,与中文界面的设置
- c#中如何进行页面的参数传递
- 代码中更改AutoLayout约束