腌萝卜干
腌萝卜干
全部文章
分类
未归档(199)
题解(8)
归档
标签
去牛客网
登录
/
注册
腌萝卜干的博客
全部文章
(共282篇)
题解 | #汉堡猪猪分糖果#
按位贪心 核心点是如果当前为是, 并且, 如果 但是, , 是剩余所有位填的结果, 必须将这些糖果消耗掉!, 也就是个糖果需要消耗掉, 注意上取整 #include <bits/stdc++.h> #define x first #define y second #define all...
2026-03-20
2
69
题解 | #小红的连续段#
简单题 非常像寒假营第六场的计数题小 L 的彩球 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace std; usin...
2026-03-19
1
53
题解 | #三视图#
很好模拟题, 注意到真实三维坐标与数组的是反过来的, 也就是真实的越大, 越在上面, 但是数组的是越大, 越在下面, 因此需要将反置, 俯视图的情况和数组相同 #include <bits/stdc++.h> #define x first #define y second #defi...
2026-03-16
0
58
题解 | #【模板】多重背包#
被坑了 注意当的时候, 不会枚举余数, 需要单独计算, 每个累加 #include <bits/stdc++.h> #define x first #define y second #define all(x) x.begin(), x.end() using namespace s...
2026-03-15
0
82
题解 | #切题之路#
模拟题, 注意不能打乱顺序 #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
57
题解 | #【模板】静态区间最值#
表模板 #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
61
题解 | #食物链计数#
将食物链按照拓扑序排序 直接即可 #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
51
题解 | #不是烤串故事#
字符串哈希快速判断两个字符串是否相等 假设最长公共前缀的函数是, 那么随着增大一定是非递减, 也就是具有二分性质 字符串哈希模板 struct Hash { vector<LL> h, p; const LL B = 131; Hash (const string...
2026-03-10
0
42
题解 | #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
54
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
92
首页
上一页
20
21
22
23
24
25
26
27
28
29
下一页
末页