摘要:
题目链接: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 阅读全文