摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1114完全背包问题两个代码 内外循环次序互换了代码一:46MS228K724 B#include<iostream>#include<string>#include<cstring>#include<cstdio>const int inf=6000005;using namespace std;int dp[10003],w[505],v[505];int main(){ int CASE,E,F,empty,n,i,j; scanf("%d&quo 阅读全文
posted @ 2011-12-24 10:15 快乐. 阅读(348) 评论(2) 推荐(0) 编辑