#include<stdio.h>
#include<queue>
using namespace std;
#define N 1005
struct node
{
int x,y,gw,fx;
};
int n,m,t,sx,sy,sz,ex,ey,ez,h,dir[4][2]={0,-1, 0,1, -1,0, 1,0};
int map[N][N];
char ev[N][N];
int judge(int x,int y)
{
if(x>0 && x<=n && y>0&&y<=m && map[x][y]==0&&ev[x][y]=='0')
return 1;
return 0;
}
int bfs(int x,int y)
{
queue<node>q;
node cur,next;
int k;
cur.x=x;
cur.y=......
阅读全文