会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
JIAQI
ACDreamer!
博客园
首页
新随笔
联系
管理
2018年9月17日
多重背包的二进制优化模板
摘要: #include #include #include #define N 1000 //物品个数 #define M 100000000 //所有物品可能的最大价值 int m[N],c[N],w[N],f[M]; int V; int max(int a,int b){return a>b?a:b;} void ZeroOnePack(int cost,int wei...
阅读全文
posted @ 2018-09-17 18:49 Chris-Zhang
阅读(362)
评论(0)
推荐(0)
编辑