摘要: #include<bits/stdc++.h> using namespace std; const int N = 110; struct Node { int weight; //重量 int volume; //体积 int money; //让利金额 } a[N]; /** 测试用例 10 阅读全文
posted @ 2021-11-25 10:47 糖豆爸爸 阅读(41) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; /** 测试用例: 80 2 18 10 30 20 */ //完全背包问题 int main( 阅读全文
posted @ 2021-11-25 10:17 糖豆爸爸 阅读(138) 评论(0) 推荐(0)
摘要: 题目: #include<bits/stdc++.h> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; int main() { //优化输入 ios::sync_with_stdio(fals 阅读全文
posted @ 2021-11-25 10:14 糖豆爸爸 阅读(192) 评论(0) 推荐(0)
Live2D