摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2602吾近来又开始翻阅背包九讲,确是神作,又有所感,故水01背包一道祭天。View Code #include <stdio.h>#include <string.h>int main(){ int T,N,V; int i,j; int f[1100],c[1100],w[1100]; scanf("%d",&T); while(T--) { scanf("%d%d",&N,&V); memset(f,0,sizeof( 阅读全文