银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共214篇)
题解 | 挡住洪水
#include<bits/stdc++.h> using namespace std; const int N=600; int n,m,res=0; char g[N][N]; bool vis[N][N]; int dx[4]={1,0,-1,0}; int dy[4]={0,...
2026-02-22
0
27
题解 | 剪纸游戏
#include<bits/stdc++.h> using namespace std; const int N=1e3+10; char g[N][N]; int n,m; bool vis[N][N]; int dx[4]={0,1,0,-1}; int dy[4]={1,0,-1...
2026-02-22
0
28
题解 | 走迷宫
#include<bits/stdc++.h> using namespace std; const int N=1e3+10; int n,m,sx,sy,ex,ey,step; int g[N][N],f[N][N]; int dx[4]={0,1,0,-1},dy[4]={-1,...
2026-02-22
0
30
题解 | 小A的线段(easy version)
#include<bits/stdc++.h> using namespace std; const int N=1e5+10,P=998244353; int n,m,res; vector<pair<int,int>> v; vector<int&g...
2026-02-22
0
36
题解 | kotori和素因子
#include<bits/stdc++.h> using namespace std; const int N=20,Ma=1010; int n,a[N],prime[Ma],pr,mi=INT_MAX; bool vis[Ma],f[N],res=false; set<i...
2026-02-21
0
32
题解 | 数组分组
#include<bits/stdc++.h> using namespace std; int n; int n3,n5,n35; vector<int> v; bool dfs(int i,int sum){ if(i==v.size()){ return n3...
2026-02-21
0
32
题解 | 模意义下最大子序列和(Easy Version)
#include<bits/stdc++.h> using namespace std; #define int long long const int N=20; int n,m; int a[N]; int num[N]; int res; void dfs(int t,int x...
2026-02-21
0
32
题解 | 全排列
#include<bits/stdc++.h> using namespace std; int n,num[20]; bool f_num[20]; void print(int p){ for(int i=1;i<=p-1;i++){ cout<<num[...
2026-02-21
0
28
题解 | 数水坑
#include<bits/stdc++.h> using namespace std; const int N=110; int n,m; char g[N][N]; bool vis[N][N]; int dx[8]={0,1,1,1,0,-1,-1,-1}; int dy[8]...
2026-02-21
0
51
题解 | 迷宫寻路
#include<bits/stdc++.h> using namespace std; const int N=110; int n,m; char g[N][N]; bool f_res=false,f[N][N]; int dx[4]={1,0,-1,0}; int dy[4]...
2026-02-21
0
26
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页