网站首页
编程语言
数据库
系统相关
其他分享
编程问答
1149
2024-05-31
ZCMU-1149
就是背包01问题#include<iostream>#include<cstring>/*01背包问题*/usingnamespacestd;constintmaxn=120;constintmaxm=1e5+10;intdp[maxm],a[maxm];intn,m;intmain(){intt;cin>>t;while(t--){cin>>n;