hdu 1028 Ignatius and the Princess III
来源:互联网 发布:摩拜魔方大数据未来 编辑:程序博客网 时间:2024/06/04 01:18
链 接:点击打开链接
题 意:整数划分问题
思 路:完全背包问题
#include<iostream>#include<algorithm>using namespace std;int main(){int n;while(cin>>n){long long int dp[200]={0};dp[0]=1;for(int i=1;i<=n;i++) for(int j=i;j<=n;j++) dp[j]=dp[j]+dp[j-i];cout<<dp[n]<<endl;}}
1 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
- Zabbix3.x安装图解教程
- HQL中左连接,右连接,内连接
- 仍然在迷茫,仍不愿放弃
- Android动画——补间动画(Tween Animation)
- vue.js ——props
- hdu 1028 Ignatius and the Princess III
- 初识nodeJs
- 数组中,除了两个数字外其他数字都是成对出现,找出来着两个数字
- MySQL中的四种Key
- poj3087——Shuffle'm Up(BFS)
- Apache、Nginx 、Lighttpd性能比较
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14
- Spring 事务回滚机制
- eclipse tomcat add and remove工程异常