quchen666
quchen666
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
quchen
😋
全部文章
(共75篇)
题解 | 华华给月月准备礼物
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 3e5+10; int len[N]; int n,k; bool check(int x) { ll cnt = ...
2026-01-02
1
45
题解 | 先序遍历、中序遍历和后序遍历
#include <bits/stdc++.h> using namespace std; const int N = 3e5+10; int n; int indg[N]; struct Node { int l,r; }e[N]; void dfs1(int u) { ...
2026-01-01
1
58
题解 | 小红的01串
#include <bits/stdc++.h> using namespace std; void solve() { string s; cin>>s; int n = s.size(); string s2 = s; for(i...
2025-12-31
1
53
题解 | 人人都是好朋友
#include <bits/stdc++.h> using namespace std; const int N =5e6+10; int fa[N]; int n; int cnt; int ai[N],bi[N],ci[N]; void init() { for(int ...
2025-12-30
1
59
题解 | 小红的01子序列构造(easy)
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 3e5+10; ll n,k; int main() { cin>>n>>k; st...
2025-12-29
0
72
题解 | 变幻莫测
#include <bits/stdc++.h> using namespace std; int ans = INT_MAX; void dfs(int x,int y,int t) { if(t>20)return ; if(x==y) { ...
2025-12-28
1
59
题解 | 小红的树上删边
#include <bits/stdc++.h> using namespace std; const int N = 3e5+10; vector<int>e[N]; int sz[N]; int n; int ans = 0; void dfs(int u,int fa...
2025-12-27
0
56
题解 | 小红的圆移动
#include <bits/stdc++.h> using namespace std; typedef long long ll; const double PI = acos(-1); int main() { int n,k; cin>>n>&g...
2025-12-26
0
51
题解 | 秘藏
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 2e5+10; ll a[N]; ll b[N]; ll dp[N][2]; int main() { ios::s...
2025-12-24
0
39
题解 | 圣
#include <bits/stdc++.h> using namespace std ; typedef long long ll; const int N = 3e5+10; ll a[N]; void solve() { int n; cin>>n; ...
2025-12-23
0
52
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页