摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4501思路:dp[l][i][j][p]表示选前l件时花费i元,积分j,免费p时最大价值View Code 1 #include<iostream> 2 #include<cstring> 3 #include<algorithm> 4 const int N=104; 5 using namespace std; 6 7 struct Node{ 8 int price; 9 int score;10 int value;11 }node[N];12 int d 阅读全文
posted @ 2013-03-21 22:16 ihge2k 阅读(376) 评论(0) 推荐(0) 编辑