#include<stdio.h>
#include<queue>
using namespace std;
bool mark[50][50][50];
int maze[50][50][50];
struct N
{
int x, y, z;
int t;
};
queue<N> Q;
int go[][3] = {
1, 0, 0,
-1, 0, 0,
0, 1, 0,
0, -1, 0,
0, 0, 1,
0, 0, -1
};
王道机试6.2:广度优先遍历(BFS)
最新推荐文章于 2024-02-25 22:29:29 发布
![](https://img-home.csdnimg.cn/images/20240709112858.png)