摘要: 01背包 include<bits/stdc++.h> using namespace std; const int MAXN = 1005; int v[MAXN]; // 体积 int w[MAXN]; // 价值 int f[MAXN][MAXN]; // f[i][j], j体积下前i个物品 阅读全文
posted @ 2025-10-15 21:51 lagranSun 阅读(5) 评论(0) 推荐(0)