剑绝尘
剑绝尘
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
剑绝尘的博客
全部文章
(共69篇)
题解 | 【模板】栈
#include <bits/stdc++.h> using namespace std; const int N = 100001; int n,s[N],topIdx; void push(int x){ s[topIdx++] = x; } void top(){ ...
2025-04-22
0
18
题解 | 字母收集
#include <bits/stdc++.h> using namespace std; const int N = 520; int n,m,dp[N][N],ans; char g[N][N]; int main(){ cin>>n>>m; ...
2025-04-21
0
19
题解 | 走迷宫
#include <bits/stdc++.h> using namespace std; const int N = 1010; int n,m,sx,sy,fx,fy; char g[N][N]; int d[N][N]; bool vis[N][N]; queue<pair...
2025-04-21
0
19
题解 | 小红的合数寻找
#include <bits/stdc++.h> using namespace std; bool check(int x){ for(int i = 2;i*i<=x;i++){ if(x%i==0) return 1; } ret...
2025-04-21
0
18
题解 | 字母收集
#include <bits/stdc++.h> using namespace std; const int N = 520; int n,m,dp[N][N],ans; char g[N][N]; int main(){ cin>>n>>m; ...
2025-04-21
0
22
题解 | 走迷宫
#include <bits/stdc++.h> using namespace std; const int N = 1010; int n,m,sx,sy,fx,fy; char g[N][N]; int d[N][N]; bool vis[N][N]; queue<pair...
2025-04-21
0
20
题解 | 小红的合数寻找
#include <bits/stdc++.h> using namespace std; bool check(int x){ for(int i = 2;i*i<=x;i++){ if(x%i==0) return 1; } ret...
2025-04-21
0
25
题解 | 【模板】二维差分
#include <bits/stdc++.h> using namespace std; const int N = 1010; typedef long long ll; ll n,m,q,a[N][N],d[N][N]; int main(){ cin>>n...
2025-04-18
0
21
题解 | 【模板】堆
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int n; priority_queue<int> q; int main(){ cin>>n; in...
2025-04-18
0
20
题解 | 小红的正整数计数
#include <bits/stdc++.h> using namespace std; int l,r,ans; int main(){ cin>>l>>r; for(int i = l;i<=r;i++){ if(...
2025-04-18
0
20
首页
上一页
1
2
3
4
5
6
7
下一页
末页