olone
olone
全部文章
分类
归档
标签
去牛客网
登录
/
注册
olone的博客
全部文章
(共27篇)
题解 | 【模板】拓扑排序
#include<bits/stdc++.h> using namespace std; const int N=2e5+5; int n,m; int b[N]; int vis[N]; int bel[N]; int cnt; vector<int>V[N]; ...
2026-01-16
0
11
题解 | many sum
#include <iostream> using namespace std; const int N=2e6+5; int n,m; int a[N]; int b[N]; int main() { scanf("%d%d%d",&n,&a...
2026-01-14
0
6
题解 | 牛牛喜欢字符串
#include <iostream> using namespace std; const int N=1e6+5; int n,k; int cnt[N][26]; int main() { scanf("%d%d",&n,&k);...
2026-01-09
0
10
题解 | 明日DISCO
#include <iostream> using namespace std; const int N=505; int n; int a[N][N]; int dx[4]={1,0,0,-1}; int dy[4]={0,1,-1,0}; int main() { s...
2026-01-07
0
10
题解 | 统计个数
#include<bits/stdc++.h> using namespace std; const int N=205; int T; int n,m; int g[N][N]; inline int gcd(int x,int y) { if(y==0) return...
2026-01-06
0
18
题解 | 构造数列
#include<bits/stdc++.h> using namespace std; const int N=2e5+5; int T; int n,a[N]; int main() { scanf("%d",&T); while(...
2026-01-04
0
18
题解 | 相助(easy)
#include<bits/stdc++.h> using namespace std; const int N=5e5+5; int n; int a[N]; int main() { scanf("%d",&n); for(int ...
2026-01-03
0
20
题解 | 华华给月月准备礼物
#include<bits/stdc++.h> #define int long long using namespace std; const int N=2e5+5; int n,k; int l[N]; inline int work(int x) { int re...
2026-01-02
0
19
题解 | 先序遍历、中序遍历和后序遍历
#include<bits/stdc++.h> using namespace std; const int N=1e5+5; int n; int fa[N],son[N][2],cnt[N]; inline void work1(int x) { printf(&qu...
2026-01-01
0
23
题解 | 小红的01串
#include<bits/stdc++.h> using namespace std; int q; string s; int main() { scanf("%d",&q); while(q--) { cin...
2025-12-31
0
18
首页
上一页
1
2
3
下一页
末页