using namespace std; char map[301][301]; bool visit[301][301]; int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; int m,n,sx,sy; struct node { int x,y,time; }; int bfs() { int i; node you,start,next; queue<node>q; you.x=sx; you.y=sy; you.time=0; q.push...
www.dbjr.com.cn/article/372...htm 2025-6-6