摘要:
贪心 + 01背包模型 点击查看代码 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N = 10010; int n; int f[N]; struct Stone { 阅读全文
posted @ 2022-06-21 12:07
wKingYu
阅读(57)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<iostream> #include<vector> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N][N]; int main() { cin >> n >> m; 阅读全文
posted @ 2022-06-21 00:46
wKingYu
阅读(23)
评论(0)
推荐(0)
摘要:
点击查看代码 #include<iostream> #include<cstring> using namespace std; const int N = 1010, mod = 1e9 + 7; int n, m; int f[N], g[N]; int main() { cin >> n >> 阅读全文
posted @ 2022-06-21 00:04
wKingYu
阅读(22)
评论(0)
推荐(0)

浙公网安备 33010602011771号