摘要: freopen("mix.in","r",stdin);freopen("mix.out","w",stdout);scanf("%d%d",&m,&n);for(i=1;i=w[i];j--) f[j]=max(f[j],f[j-w[i]]+v[i]); ... 阅读全文