腌萝卜干
腌萝卜干
全部文章
分类
未归档(199)
题解(7)
归档
标签
去牛客网
登录
/
注册
腌萝卜干的博客
全部文章
(共264篇)
牛客小白月赛111
链接 A #include <iostream> #include <algorithm> #include <cstring> #include <vector> using namespace std; const int N = 10, ...
2026-03-29
0
0
Acwing163周赛题解
A #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 110, INF = 0x3f3f3f3f; int n, l...
2026-03-29
0
0
Acwing161周赛题解
A #include <iostream> #include <algorithm> #include <cstring> using namespace std; int gcd(int a, int b) { return b ? gcd(b,...
2026-03-29
0
0
Acwing160周赛题解
A #include <iostream> #include <algorithm> #include <cstring> using namespace std; int main() { ios::sync_with_stdio(false);...
2026-03-29
0
0
Acwing159周赛题解
A #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 110; int n; int main() { ...
2026-03-29
0
0
Acwing158周赛题解
A 算法标签: 基础算法 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 3; int w[N]; int m...
2026-03-29
0
0
图论缩点问题
有向图缩点 t a r j a n tarjan tarjan算法求 s c c scc scc缩点 1174. 受欢迎的牛 #include <iostream> #include <algorithm> #include <cstring> usin...
2026-03-29
0
0
C++严格代码规范
变量命名规范 严格下划线命名法, 适当缩写 行rowrowrow 列colcolcol 体积volvolvol或vvv 前缀和sss 字符串如果已经有sss, 则命名为strstrstr 动态规划数组f[i][j]f[i][j]f[i][j] 图论当中点对(u,v)(u, v)(u,v), 如果有...
2026-03-29
0
0
Acwing157周赛题解
A 算法标签: 基础算法, 模拟 将情况分为两类, 因为是两位数, 因此看个位, 如果<5< 5<5, 舍去, 否则进位 #include <iostream> #include <algorithm> #include <cstring>...
2026-03-29
0
0
DSU并查集应用
D S U DSU DSU基本应用 240. 食物链 A , B , C A, B, C A,B,C构成环形 不管是否是同类或者是进食关系, 放到一个并查集中, 只要知道每个点和根节点的关系, 那么两点之间的关系就能确定 如何确定没个点和根节点之间的关系? 并查集维护额外信息, 维护每个点到...
2026-03-29
0
0
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页