摘要:
题意:给出一组价值的数据,再给出一组体积的数据。求在m体积下所放的物品价值最大价值。连接:http://acm.hdu.edu.cn/showproblem.php?pid=2602View Code #include <iostream>using namespace std;const int MAX=1000+10;int v[MAX];int w[MAX];int dp[MAX];int cmp(int a,int b){ return a>b?a:b;}int main(){ int k; while(~scanf("%d",&k)) { 阅读全文
posted @ 2012-09-12 21:03
Keep Strive
阅读(198)
评论(0)
推荐(0)
2012年9月12日