![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
背包
Hanylch
菜鸟的起飞之路
Think and Practice
展开
-
Piggy-Bank (hdu 1114 完全背包 模板)
Piggy-BankTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 24510 Accepted Submission(s): 12416Problem Description Before ACM can do anything原创 2017-05-17 20:48:56 · 225 阅读 · 0 评论 -
多重背包(二进制优化)
类似于poj 1014 qduoj#include<bits/stdc++.h> #define maxn 100007using namespace std;int mm[20][20]; int dp[maxn]; int v[maxn]; int w[maxn];int main() { int n,m,t; scanf("%d",&t); while(t--)原创 2017-06-07 19:42:14 · 428 阅读 · 0 评论