有胆量的柯基在学习
有胆量的柯基在学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
有胆量的柯基在学习的博客
全部文章
(共112篇)
题解 | 棋盘
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<vector<int>> a(n + 1, vector&l...
2025-08-20
0
28
题解 | 小红的项链
#include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T--) { long long n, k, a1, a2, a3;...
2025-08-20
0
30
题解 | 小红玩纸牌
#include <bits/stdc++.h> using namespace std; static long long solve_segment(const vector<long long>& cnt) { // 在一段“大小连续”的序列上,计算最多...
2025-08-20
0
32
题解 | 小红的好数组
#include <bits/stdc++.h> using namespace std; using int64 = long long; // 计算把整个已排序数组都变为 b[t] 的 L1 代价(用前缀和 O(1)) static inline long long cost_al...
2025-08-20
0
26
题解 | 小红的子串权值和
#include <bits/stdc++.h> using namespace std; int main() { int n; string s; cin >> n >> s; long long ans = 1LL * n ...
2025-08-20
0
20
题解 | 小红的区间删除
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<long long> a(n); for (int i = 0;...
2025-08-20
0
25
题解 | 放它一马
#include <bits/stdc++.h> using namespace std; using int64 = long long; int main() { int n; cin >> n; vector<int64> a(n ...
2025-08-20
0
46
题解 | 信号模拟
#include <bits/stdc++.h> using namespace std; static const int MOD = 998244353; int addmod(int a, int b) { a += b; if (a >= MOD) a ...
2025-08-20
1
21
题解 | 转化
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; string s; cin >> s; /...
2025-08-19
1
20
题解 | 向后找
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<char> s(n); for (int i = 0; i &l...
2025-08-19
0
19
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页