随笔分类 -  DP/背包

hdu 1506 City Game 二维的多重背包
摘要:City GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2580Accepted Submission(s): 1032Problem DescriptionBob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by are 阅读全文
posted @ 2012-08-19 00:18 Zee、 阅读(533) 评论(0) 推荐(0)
hdu 1506 Largest Rectangle in a Histogram
摘要:Largest Rectangle in a HistogramTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5548Accepted Submission(s): 1590Problem DescriptionA histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equa 阅读全文
posted @ 2012-08-18 15:57 Zee、 阅读(2005) 评论(0) 推荐(0)
hdu 2191 多重背包
摘要:悼念512汶川大地震遇难同胞——珍惜现在,感恩生活Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7445Accepted Submission(s): 3065Problem Description急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤粮食呢?后记:人生是 阅读全文
posted @ 2012-08-18 10:46 Zee、 阅读(613) 评论(1) 推荐(0)
hdu 2844 Coins 多重背包问题
摘要:CoinsTime Limit : 2000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 5Accepted Submission(s) : 3Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem DescriptionWhuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened pur 阅读全文
posted @ 2012-08-17 16:18 Zee、 阅读(808) 评论(0) 推荐(0)
hdu 1171 Big Event in HDU
摘要:Big Event in HDUTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13577Accepted Submission(s): 4757Problem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College h 阅读全文
posted @ 2012-08-17 10:27 Zee、 阅读(644) 评论(0) 推荐(0)
hdu 1078 FatMouse and Cheese 记忆化搜索/DP
摘要:FatMouse and CheeseTime Limit : 2000/1000ms (Java/Other)Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 3Accepted Submission(s) : 3Font:Times New Roman|Verdana|GeorgiaFont Size:←→Problem DescriptionFatMouse has stored some cheese in a city. The city can be considered as a square grid o 阅读全文
posted @ 2012-08-15 00:16 Zee、 阅读(883) 评论(0) 推荐(0)
hdu 1421 搬寝室 DP
摘要:搬寝室Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9400Accepted Submission(s): 3178Problem Description搬寝室是很累的,xhd深有体会.时间追述2006年7月9号,那天xhd迫于无奈要从27号楼搬到3号楼,因为10号要封楼了.看着寝室里的n件物品,xhd开始发呆,因为n是一个小于2000的整数,实在是太多了,于是xhd决定随便搬2*k件过去就行了.但还是会很累,因为2*k也不小是一个不大于n的 阅读全文
posted @ 2012-08-13 10:25 Zee、 阅读(203) 评论(0) 推荐(0)
hdu 2577 DP
摘要:转眼间已经到DP模块了。。。。How to TypeTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1781Accepted Submission(s): 837Problem DescriptionPirates have finished developing the typing software. He called Cathy to test his typing software. She is good at thinking. 阅读全文
posted @ 2012-08-12 15:49 Zee、 阅读(530) 评论(0) 推荐(0)