quchen666
quchen666
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
quchen
😋
全部文章
(共62篇)
题解 | 人人都是好朋友
#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
37
题解 | 小红的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
44
题解 | 变幻莫测
#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
36
题解 | 小红的树上删边
#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
32
题解 | 小红的圆移动
#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
27
题解 | 秘藏
#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
23
题解 | 圣
#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
30
题解 | 小猫排队
#include <bits/stdc++.h> using namespace std; const int N = 3e5+10; int a[N]; int n; int main() { ios::sync_with_stdio(false); cin.tie(0...
2025-12-22
1
26
题解 | 排座椅
#include <bits/stdc++.h> using namespace std; const int N = 2e3+10; struct Node { int cnt=0; int id; }; Node a[N]; Node b[N]; bool cm...
2025-12-21
1
31
题解 | 小红的口罩
#include <bits/stdc++.h> using namespace std; typedef long long ll; int n,k; int main() { cin>>n>>k; int sum = 0; prior...
2025-12-19
1
32
首页
上一页
1
2
3
4
5
6
7
下一页
末页