摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2159解题思路:用数组dp[i][j]表示消耗i个忍耐度杀死j个怪做能得到的经验的最大值,dp[i][j]=max(dp[i][j],dp[i-c[k][j-1]+d[k]);View Code 1 #include <iostream> 2 #include <cstring> 3 #include <cstdio> 4 #include <algorithm> 5 using namespace std; 6 int max(int x,int y 阅读全文
posted @ 2012-03-17 15:27 我们一直在努力 阅读(144) 评论(0) 推荐(0) 编辑