上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 34 下一页

2012年10月15日

hdu 1069 Monkey and Banana (DP)

摘要: 点击打开链接 1,输入箱子的种类数 2,输入各个箱子的长宽高; 求各个箱子放起来达到的最大高度,要求,下面的箱子的长和宽都比上面的要大!! #include"stdio.h"#include"stdlib.h"struct A{ int x; int y; int h;}each... 阅读全文

posted @ 2012-10-15 13:08 Slege 阅读(101) 评论(0) 推荐(0)

hdu 2550百步穿杨 (DP)

摘要: 点击打开链接 题目意思 1,给你t表示测试组数 2,给你n代表剑的总类数 3,给你a,b,a代表剑身长度,b代表剑的个数 #include#includeint main(){ int t,n,i,j,k1[11],k2[11],temp; char a[35]={... 阅读全文

posted @ 2012-10-15 13:08 Slege 阅读(95) 评论(0) 推荐(0)

hdu 1723 Distribute Message (DP)

摘要: 点击打开链接 题目意思; 给你一列学生,人数为n,从第一个向最后传信息,每人最远可以传递给m距离的学生,求最后一个学生收到信息的方法总数。。。 #include"stdio.h"#include"string.h"int main(){ int n,m,i,j,dp[66]; wh... 阅读全文

posted @ 2012-10-15 13:08 Slege 阅读(106) 评论(0) 推荐(0)

hdu 2059 龟兔赛跑 (DP)

摘要: 点击打开链接 dp#include #include const double MAX = 999999999.0;double dp[105];int main(){ int i,j,n; double L,c,t,vr,vh,vl,len; double temp... 阅读全文

posted @ 2012-10-15 13:08 Slege 阅读(102) 评论(0) 推荐(0)

hdu 1158 Employment Planning (DP)

摘要: 点击打开链接 题目意思: 1,给你一个n代表要工作的总月数 2,给你工人的雇佣工资hire,月工资salary,解雇工资fire 3,给你每个月需要的工人数 求最小费用 dp[i][j]代表第i个月使用j个工人的最小费用 #include int man[15];int d... 阅读全文

posted @ 2012-10-15 13:08 Slege 阅读(82) 评论(0) 推荐(0)

hdu 1114 Piggy-Bank (DP)

摘要: 点击打开链接 题目意思:完全背包、 1,t组数据 2,给你背包的质量和装上东西后的质量 3,给你一个n,代表有n种货物 4,给你每种货物的价值和重量 求背包所装的做小价值 #include"stdio.h"int min(int a,int b){ if(a>b) retu... 阅读全文

posted @ 2012-10-15 13:07 Slege 阅读(129) 评论(0) 推荐(0)

hdu 1003 Max Sum (DP)

摘要: 点击打开链接 题意:给你一串数,输出此列数中连续不间断的子数的最大和,以及其开始的位置,结束的位置 按下面的程序分析:: j暂时存储开始的位置,结束的位置用end存,其中,当summax) { max=sum; sta=j; end=i; } if(su... 阅读全文

posted @ 2012-10-15 13:07 Slege 阅读(88) 评论(0) 推荐(0)

hdu 1257 最少拦截系统 (DP)

摘要: 点击打开链接 #include"stdio.h"int main(){ int a[10011],b[10011]; int i,j,c,n; while(scanf("%d",&n)!=EOF) { c=1; for(i=0;i<n;i++) scanf("%d",&a[i]); ... 阅读全文

posted @ 2012-10-15 13:07 Slege 阅读(123) 评论(0) 推荐(0)

2012年10月14日

hdu 1982 Kaitou Kid - The Phantom Thief (1) (水。。)

摘要: 点击打开链接 #include"stdio.h"int main(){ int t,i; int n; char str[11111]; scanf("%d",&t); getchar(); while(t--) { gets(str); for(i=0;str[i];i++) { ... 阅读全文

posted @ 2012-10-14 17:39 Slege 阅读(102) 评论(0) 推荐(0)

hdu 1871 无题 (水。。)

摘要: 点击打开链接 注意一点:当一个小组选择好一个旅馆时,此旅馆的房间数要对应减去小组人数。。。 #include"stdio.h"#include"stdlib.h"struct fun{ int num,count,price;}a[111];int cmp(const void*a,cons... 阅读全文

posted @ 2012-10-14 17:39 Slege 阅读(93) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 34 下一页

导航