for(int i=1;i<=n;i++){ for(int j=W;j>=w[i];j--){ f[j]=max(f[j],f[j-w[i]]+v[i]); } }
2022tysc0158 LV 9
使用您的 oiClass 通用账户