首页 > 【模板】01背包(计数)
头像 Ldh1315109
发表于 2025-12-02 21:22:30
[模板]01背包(计数) 代表占用体积能达到的最大价值 代表占用体积能达到最大价值时的方案数 #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll MOD = 1000000007; 展开全文
头像 chenlan114
发表于 2026-01-01 19:08:50
#include <bits/stdc++.h> using namespace std; struct it { int v = 0; int w = 0; }; const int N = 1e4 + 5; const int M = 1e9 + 7; it a[N 展开全文