hdu 2602一个典型的背包问题
摘要:
#include<cstdio>#include<cstring>int main(){ int T,N,V; scanf("%d",&T); int bg[1000],vol[1000],w[1000]; while(T--) { memset(bg,0,sizeof(bg)); scanf("%d%d",&N,&V); int i,j; for(i=1;i<=N;i++) scanf("%d",&w[i]); for(i=1;i<=N;i++) scanf(&qu 阅读全文
posted @ 2012-03-28 22:29 笨-Archangel 阅读(166) 评论(0) 推荐(0)
浙公网安备 33010602011771号