Codeforces Round #178 (Div. 2) B .Shaass and Bookshelf 01背包
放书 01背包
题意:每本书有厚和宽 书可以放在上面 求最小总厚度
#include
#include
#include
using namespace std;
#define INF 0x1f1f1f1f
int a[1001];//价值
int b[1001];//体积
int f[1001];
int main()
{
int n,V,i,j;
while(scanf("%
原创
2013-04-14 23:51:23 ·
934 阅读 ·
1 评论