#include <stdio.h>
#include <string.h>
struct node{
int x,y;
int step;
};
struct node q[10000]={0}; //模拟队列
char mpt [105][105];
int vis[105][105];
int dir[4][2] = {{0,1},{1,0},{0,-1},{-1,0}};//方向
int bfs(int sx,int sy)
{
memset(vis,0,sizeof(vis));
int head=0,tail...