摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=260201背包:用二维数组实现。c[n][m]表示n种物品,背包容量为m的最大价值。状态方程为:f(n,m)=max{f(n-1,m), f(n-1,m-w[n])+P(n,m)}这就是书本上写的动态规划方程. Bone CollectorTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 24513Accepted Submission(s): 9911 Pr 阅读全文
摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=15051506的加强,从一维变二维。 City GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3959Accepted Submission(s): 1651 Problem DescriptionBob is a strategy game programming specialist. In his new city building game 阅读全文