摘要: #include #include #include #include using namespace std; #define N 500 struct Bag { int id; int w; int v; double wv; }; int C,n,Wsum,Vsum,best; struct Bag bag[N]; int tempans[N],ans[N]; int cmp(const void *a,const void *b) { struct Bag *c = (Bag *) a; struct Bag *d = (Bag ... 阅读全文
posted @ 2012-12-04 23:54 0弓虽 阅读(148) 评论(0) 推荐(0) 编辑