摘要: 普通的01背包问题#include using namespace std; const int MAXN = 10005; int dp[MAXN], v1[MAXN], weight[MAXN], v, n, c, sum, flag; int main() { cin >> v >> n >> c; for(int i = 1; i > weight[i] >> v1[i]; su... 阅读全文
posted @ 2019-08-04 22:40 ATKevin 阅读(150) 评论(0) 推荐(0) 编辑