quchen666
quchen666
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
quchen
😋
全部文章
(共62篇)
题解 | 切题之路
#include <bits/stdc++.h> using namespace std; const int N=3e5+10; const int mod = 998244353; typedef long long ll; typedef unsigned long long ul...
2026-01-11
0
34
题解 | 牛牛喜欢字符串
#include <bits/stdc++.h> using namespace std; int n,k; int cnt[27]; int main() { ios::sync_with_stdio(false); cin.tie(0); cin>&g...
2026-01-09
3
31
题解 | 区间取反与区间数一
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 2e6+10; int a[N]; int sum[N]; bool chg[N]; void up(int i) { ...
2026-01-08
1
31
题解 | 明日DISCO
#include <bits/stdc++.h> using namespace std; const int N = 1e3+10; int a[N][N]; int dir[4][2]={1,0,-1,0,0,-1,0,1}; int main() { ios::sync...
2026-01-07
1
29
题解 | 小美打怪
#include <bits/stdc++.h> using namespace std; const int N = 3e5+10; struct Node { int a,h; }nd[N]; int dp[N]; bool cmp(Node a,Node b) {...
2026-01-05
1
39
题解 | 构造数列
#include <bits/stdc++.h> using namespace std; const int N=3e5+10; const int mod = 998244353; typedef long long ll; typedef unsigned long long ul...
2026-01-04
1
47
题解 | 相助(easy)
#include <bits/stdc++.h> using namespace std; const int N = 6e5+10; int a[N]; int cnt[N]; int main() { int n; cin>>n; for(in...
2026-01-03
2
34
题解 | 华华给月月准备礼物
#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
25
题解 | 先序遍历、中序遍历和后序遍历
#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
31
题解 | 小红的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
29
首页
上一页
1
2
3
4
5
6
7
下一页
末页