走迷宫

#include <stdio.h> #include <string.h> char mat[11][11]; // 地图信息 int ans, n, m; // ans 用来记录最后答案 n, m 表示行列 int dir[4][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};  //对应的上下左右4各方向 int vis[11][11]; // 用来标记是否访
相关文章
相关标签/搜索