肖猪
肖猪
全部文章
分类
归档
标签
去牛客网
登录
/
注册
博客
蒟蒻一枚~
全部文章
(共27篇)
题解 | 没挡住洪水
#include <bits/stdc++.h> using namespace std; int n; const int N = 1010; char str[N][N]; bool will_sink[N][N]; int dx[] = {0, 1, 0, -1};...
2026-02-25
1
29
题解 | 挡住洪水
#include <bits/stdc++.h> using namespace std; int n, m; char str[550][550]; int cnt; int dx[] = {0, 1, 0, -1}; int dy[] = {1, 0, -1, 0}; void ...
2026-02-25
1
26
题解 | 走迷宫
#include <bits/stdc++.h> using namespace std; int n, m; int s1, s2, e1, e2; char str[1010][1010]; int dx[] = {0, 1, 0, -1}; int dy[] = {1, 0, -...
2026-02-25
0
23
题解 | 全排列
#include<bits/stdc++.h> using namespace std; int n; int arr[20]; int check[20]; void print() { for (int i = 1; i <= n; i++) { printf(&qu...
2026-02-25
0
31
题解 | 数水坑
#include<bits/stdc++.h> using namespace std; int n, m; char str[110][110]; int cnt; int dx[] = {-1, -1, 0, 1, 1, 1, 0, -1}; int dy[] = {0, 1, 1...
2026-02-25
0
29
题解 | 迷宫寻路
#include <bits/stdc++.h> using namespace std; int n, m; char arr[102][102]; int dx[] = {0, 0, 1, 0, -1}; int dy[] = {0, 1, 0, -1, 0}; void dfs(i...
2026-02-12
0
28
题解 | 排序危机
#include <bits/stdc++.h> using namespace std; const int N = 100086; char arr[N]; char str1[N]; char str2[N]; //分别将数字,小写字母,大写字母分开输入,归类进对应的数组,再按顺序...
2026-02-11
1
29
题解 | 小红的排列构造①
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; if (n == 1) printf("-1"); e...
2026-02-11
0
28
题解 | 植树节
#include <bits/stdc++.h> using namespace std; long long arr[1000086]; long long sum[1000086]; int main() { int n; cin >> n; in...
2026-02-09
1
29
题解 | 牛牛与切割机
#include <bits/stdc++.h> using namespace std; long long arr[2000086]; long long sum[2000086]; int main() { long long n; cin >> n; ...
2026-02-09
0
29
首页
上一页
1
2
3
下一页
末页