quchen666
quchen666
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
quchen
😋
全部文章
(共31篇)
题解 | 小红的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
6
题解 | 变幻莫测
#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
10
题解 | 小红的树上删边
#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
8
题解 | 小红的圆移动
#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
8
题解 | 秘藏
#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
11
题解 | 圣
#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
10
题解 | 小猫排队
#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
10
题解 | 排座椅
#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
12
题解 | 小红的口罩
#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
12
题解 | 01串题
#include <bits/stdc++.h> using namespace std; int a,b,x; int main() { cin>>a>>b>>x; if(a<x/2||b<x/2||a+b<x)c...
2025-12-18
1
11
首页
上一页
1
2
3
4
下一页
末页