有胆量的柯基在学习
有胆量的柯基在学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
有胆量的柯基在学习的博客
全部文章
(共90篇)
题解 | 最少的完全平方数
#include <bits/stdc++.h> using namespace std; bool isSquare(long long x) { long long r = (long long)sqrtl((long double)x); return r * r...
2025-08-10
0
14
题解 | 串
#include <bits/stdc++.h> using namespace std; const long long MOD = 1000000007; int main() { long long n; cin >> n; long lo...
2025-08-10
0
16
题解 | [ZJOI2010]COUNT 数字计数
#include <bits/stdc++.h> using namespace std; using int64 = long long; // 统计[1..n]中每个数字0..9出现的次数;n<=1e12 vector<int64> tally(int64 n) ...
2025-08-09
0
19
题解 | 数位染色
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s; if (!(cin...
2025-08-09
0
16
题解 | 郊区春游
#include <bits/stdc++.h> using namespace std; using ll = long long; const ll INF = (1LL << 60); int main() { ios::sync_with_stdio(fa...
2025-08-09
0
17
题解 | 二叉树中的最大路径和
#include <climits> #include <iostream> #include <vector> using namespace std; // 以 root 为终点的最长路径 int dfs(int root, vector<int>...
2025-08-07
0
16
题解 | 小红的树
#include <bits/stdc++.h> using namespace std; const int N = 100005; vector<int> tree[N]; int redCount[N]; // 每个节点的子树中红色节点的个数(含自己) char co...
2025-08-07
0
19
题解 | 加分二叉树
#include <bits/stdc++.h> using namespace std; void printPreOrder(int left, int right, vector<vector<int>>& bestRoot) { if (...
2025-08-07
0
15
题解 | 加分二叉树
#include <bits/stdc++.h> using namespace std; // 前序打印构造函数 void printPreorder(int left, int right, vector<vector<int>>& bestRoot...
2025-08-07
0
15
题解 | 能量项链
#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
15
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页