腌萝卜干
腌萝卜干
全部文章
分类
未归档(199)
题解(4)
归档
标签
去牛客网
登录
/
注册
腌萝卜干的博客
全部文章
(共250篇)
题解 | #三视图#
很好模拟题, 注意到真实三维坐标与数组的是反过来的, 也就是真实的越大, 越在上面, 但是数组的是越大, 越在下面, 因此需要将反置, 俯视图的情况和数组相同 #include <bits/stdc++.h> #define x first #define y second #defi...
2026-03-16
0
20
题解 | #【模板】多重背包#
被坑了 注意当的时候, 不会枚举余数, 需要单独计算, 每个累加 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace s...
2026-03-15
0
40
题解 | #切题之路#
模拟题, 注意不能打乱顺序 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; using i128 = __...
2026-03-14
0
20
题解 | #【模板】静态区间最值#
表模板 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; using i128 = __int128; us...
2026-03-13
0
22
题解 | #食物链计数#
将食物链按照拓扑序排序 直接即可 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; using i128 ...
2026-03-12
0
23
题解 | #不是烤串故事#
字符串哈希快速判断两个字符串是否相等 假设最长公共前缀的函数是, 那么随着增大一定是非递减, 也就是具有二分性质 字符串哈希模板 struct Hash { vector<LL> h, p; const LL B = 131; Hash (const string...
2026-03-10
0
17
题解 | #Nowcoder Weekly Contest#
A 直接模拟即可 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; using i128 = __int12...
C++
C
字符串
贪心
动态规划
哈希表
数组
2026-03-09
1
25
AtCoder Beginner Contest 448 题解
A 直接模拟即可 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; using i128 = __int1...
C++
C
2026-03-08
3
53
牛客周赛126题解
A 分类讨论即可 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; using i128 = __int1...
C++
C
字符串
数学
哈希表
动态规划
深度优先搜索
2026-03-07
0
29
三分求单峰函数极值题解 | #qcjj寄快递#
用和逐步逼近最小值 如果, 说明是比较大的不能选择, 因此将, 反之就是 实现代码 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using na...
2026-03-07
0
27
首页
上一页
16
17
18
19
20
21
22
23
24
25
下一页
末页