有胆量的柯基在学习
有胆量的柯基在学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
有胆量的柯基在学习的博客
全部文章
(共112篇)
题解 | 加分二叉树
#include <bits/stdc++.h> using namespace std; // 前序打印构造函数 void printPreorder(int left, int right, vector<vector<int>>& bestRoot...
2025-08-07
0
17
题解 | 能量项链
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 220; const int Mod = 1e9 + 7; ll a[N]; int n; ll dp[N][N]; i...
2025-08-06
0
19
题解 | 括号区间匹配
#include <iostream> #include <cstring> using namespace std; string s; int dp[105][105]; // 判断两个括号能否匹配 bool match(char a, char b) { r...
2025-08-06
0
20
题解 | [CQOI2007]涂色PAINT
#include <iostream> #include <vector> #include <string> using namespace std; string target; int dp[55][55]; // 最多长度为50 // 区间 [l, r...
2025-08-06
0
18
题解 | 小红取数
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n, k; cin >> n >&...
2025-08-06
0
18
题解 | 字母收集
#include <iostream> #include <vector> #include <string> using namespace std; int getScore(char c) { if (c == 'l') return 4; ...
2025-08-05
0
23
题解 | 【模板】二维差分
#include <iostream> #include <vector> using namespace std; int main() { int n, m, q; cin >> n >> m >> q; ve...
2025-08-04
0
23
题解 | 【模板】差分
#include <iostream> #include <vector> using namespace std; int main() { int n, m; cin >> n >> m; vector<long ...
2025-08-04
1
24
题解 | 【模板】二维前缀和
#include <iostream> #include <vector> using namespace std; int main() { int n, m, q; cin >> n >> m >> q; /...
2025-08-04
0
24
题解 | 【模板】前缀和
#include <iostream> #include <vector> using namespace std; int main() { int n, m; cin >> n >> m; vector<long ...
2025-08-04
0
25
首页
上一页
3
4
5
6
7
8
9
10
11
12
下一页
末页