import sys maze_y,maze_x = map(int, input().split()) array = [] for x in range(maze_y): array.append(list(map(int, input().split()))) def bfs(start, end): quene = [(start,[start])] # 起点和路径 DELTA = ((1,0),(-1,0),(0,1),(0,-1)) visited =set() if start == end: return s...