有胆量的柯基在学习
有胆量的柯基在学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
有胆量的柯基在学习的博客
全部文章
(共90篇)
题解 | 小O的字符串重排
#include <bits/stdc++.h> using namespace std; array<long long, 26> countNeed(const string& p) { array<long long, 26> need{}...
2025-08-23
0
5
题解 | 小O的叶子
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<vector<int>> g(n + 1); vec...
2025-08-23
0
6
题解 | 小O的子序列最值(二)
#include <bits/stdc++.h> using namespace std; const int MOD = 1e9 + 7; int main() { int n; cin >> n; vector<long long>...
2025-08-23
0
6
题解 | 小O的子序列最值
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<long long> a(n), b(n); for (int ...
2025-08-23
0
7
题解 | 小O的树上加边
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<vector<int>> g(n + 1); for...
2025-08-23
0
6
题解 | 小O的树上路径
#include <bits/stdc++.h> using namespace std; int n; vector<vector<pair<int,long long>>> g; vector<int> parent_; vector...
2025-08-22
0
5
题解 | 小O的五号倍数
#include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T--) { string s; cin >...
2025-08-22
0
8
题解 | 小O的数位翻转
#include <bits/stdc++.h> using namespace std; // 翻转定义的函数 f(x) static inline long long flipBin(long long x) { // 去掉末尾的 0(反转后这些会变成前导 0 被删掉) ...
2025-08-22
0
9
题解 | 小O的矩阵变换
#include <bits/stdc++.h> using namespace std; static inline int read_bit() { char ch; while (cin >> ch) { if (ch == '0' |...
2025-08-22
0
7
题解 | 小O的数组染色
#include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T--) { int n; cin >>...
2025-08-22
0
7
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页