摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2602本来想小复习一下,没想到居然被虐。。。开始用的二维,没有化,一直WA修改后的代码二维:#include<iostream>#include<cstring>#include<cstdio>using namespace std;__int64 dp[1001][1001];int W[1001],V[1001];int main(){ int CASE,i,j; int Sum,bag; cin>>CASE; while(CASE--) { cin> 阅读全文
posted @ 2011-12-21 00:33 快乐. 阅读(136) 评论(0) 推荐(0) 编辑