#include <cstdio>
#include <queue>
using namespace std;
const int M=110;
int visit[M][M];
char map[M][M];
int dir[4][2]={{0,1},{0,-1},{1,0},{-1,0}};
int t,m,n,x1,y1,x2,y2,k,i,r,tx,ty;
char ch;
struct node
{
int x,y,turn,dir;
};
bool check(int x,int y)
{
if(x>=1 && x<=m && y>=1 && y<=n)
return true;
return false;
}
bool bfs()
{
queue<node> v;
node p,temp;
p.x=x1, p.y=y1, p.turn=-1, p.dir=-1;
v.push(......
阅读全文