摘要: 链接:http://poj.org/problem?id=1014题意: 价值为 i 的物品分别有 a[i] 个, 问是否能够均分。多重背包问题。View Code 1 #include <cstdio> 2 #include <cstdlib> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 int a[10], M, dp[100000]; 8 void zpack( int w, int v ) 9 { 阅读全文
posted @ 2012-08-12 10:14 淡墨æ末央 阅读(150) 评论(0) 推荐(0) 编辑