首页
比赛
tracker
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
【模板】01背包(计数)
4条解析
开通博客写题解
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
展开全文
Xiettt
发表于 2026-05-02 18:34:32
#include<bits/stdc++.h> using namespace std; using ui=unsigned int; using ll=long long; using ull=unsigned long long; using i128=__int128_t; us
展开全文
lao_xiao
发表于 2026-03-07 22:04:23
#include <iostream> #include <cstring> using namespace std; const int N = 1e4 + 10; const int M = 1e9 + 7; int v[N], w[N]; int f[N]; in
展开全文
查看本题
查看本题讨论
相关比赛
94803-模板题内测
进入比赛
124645-模板题内测
进入比赛
128995-fynu数统寒假集训题目集week3
进入比赛
等你来战
查看全部
2026牛客五一集训派对day5
报名截止时间:2026-05-05 17:00
牛客小白月赛132
报名截止时间:2026-05-08 21:00
2026深圳职业技术大学程序设计竞赛(同步赛)
报名截止时间:2026-05-10 18:00
牛客周赛 Round 143
报名截止时间:2026-05-10 21:00
哈尔滨华德学院第十七届程序设计竞赛(同步赛)
报名截止时间:2026-05-12 17:00
"壹零杯"第三届西华师范大学程序设计竞赛(同步赛)
报名截止时间:2026-05-24 14:30
汤圆头 Round 1
报名截止时间:2026-07-06 17:00
2026牛客暑期多校训练营1
报名截止时间:2026-07-16 17:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题