摘要:
#include<bits/stdc++.h> using namespace std; char G[25][25]; int vis[25][25]; //方向数组,上右下左 int dx[5] = {-1,0,1,0},dy[5] = {0,1,0,-1}; int ans=0,n,m,nx, 阅读全文
posted @ 2024-11-25 06:00
行胜于言Ibl
阅读(86)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; //地图数组,标记数组 int G[105][105],vis[105][105]; //方向数组:上右下左 int dx[5]={-1,0,1,0},dy[5]={0,1,0,-1}; int n,cnt=0 阅读全文
posted @ 2024-11-25 05:59
行胜于言Ibl
阅读(95)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int G[105][105],vis[105][105]; //方向数组,上右下左 int dx[8] = {0,1,1,1,0,-1,-1,-1},dy[8] = {1,1,0,-1,-1,-1,0,1}; 阅读全文
posted @ 2024-11-25 05:58
行胜于言Ibl
阅读(211)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> using namespace std; int G[25][25],vis[25][25]; //方向数组,上右下左 int dx[5] = {-1,0,1,0},dy[5] = {0,1,0,-1}; bool f = false; int n,m 阅读全文
posted @ 2024-11-25 05:58
行胜于言Ibl
阅读(92)
评论(0)
推荐(0)
摘要:
#include<iostream> using namespace std; //4个方向的数组:上 右 下 左 int dx[4]={-1,0,1,0} ,dy[4]={0,1,0,-1}; //创建地图数组 char G[105][105]; //标记数组,对应地图数组的每一个点,1代表被搜索 阅读全文
posted @ 2024-11-25 05:56
行胜于言Ibl
阅读(73)
评论(0)
推荐(0)

浙公网安备 33010602011771号