摘要: #include #include #include #include #include using namespace std; struct HY { int u,v; }hy[10005]; bool cmp(HY a,HY b) { if(a.v == b.v) return a.u>b.u; else return a.v>t... 阅读全文
posted @ 2018-10-22 21:29 萌新上路 阅读(81) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; int d[30][30005]; //d[i][j] i件中,j重量的物品 ,价格最高 int v[30],w[30]; int Max(int a,int b) { if(a>b) return a; else retur... 阅读全文
posted @ 2018-10-22 21:28 萌新上路 阅读(130) 评论(0) 推荐(0) 编辑