番禺小韭菜
番禺小韭菜
全部文章
分类
归档
标签
去牛客网
登录
/
注册
番禺小韭菜的博客
全部文章
(共93篇)
题解 | 小红的01子序列计数(hard)
#include <bits/stdc++.h> #define rep(i, a, b) for (int i = (a), _##i = (b); i <= _##i; ++i) #define per(i, a, b) for (int i = (a), _##i = (b)...
2025-03-06
0
54
题解 | 在树上游玩
#include <cstdint> #include <iostream> #include <vector> using namespace std; int main() { constexpr int MOD = 1e9 + 7; //...
2025-03-06
0
25
题解 | 乘之
#include <iostream> #include <vector> using namespace std; void solve(){ int n, k; cin >> n >> k; vector<int&g...
2025-03-06
0
31
题解 | 小红的“质数”寻找
#include <iostream> #include <vector> using namespace std; vector<string> ans = {"2", "3", "5", "...
2025-03-06
1
29
题解 | 计树
#include <iostream> #include <vector> #include <queue> #include <algorithm> using namespace std; int main() { ios::sync_w...
2025-03-06
0
27
题解 | 小红的好排列
#include <iostream> using namespace std; const int MOD = 1e9 + 7; const int MAX = 1e6 + 5; long long fact[MAX], inv_fact[MAX]; // 快速幂取模 long ...
2025-03-05
0
38
题解 | 小红的二叉树
#include <iostream> #include <vector> using namespace std; int main() { constexpr int MOD = 1e9+7; int n; cin >> n; vec...
2025-03-05
0
26
题解 | 1or0
#include <iostream> using namespace std; //类似前缀和 int main() { int n; cin >> n; string str; cin >> str; long lon...
2025-03-05
0
24
题解 | 隐匿社交网络
#include <any> #include <iostream> #include <vector> using namespace std; class Total_set { public: vector<int> parent;...
2025-03-05
0
28
题解 | 小红走网格
#include <iostream> using namespace std; int gcd(int a, int b){ return b==0? a : gcd(b, a%b); } void solve(){ int x, y, a, b, c, d; ...
2025-03-05
1
33
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页