# 判断一个点是否合法, def isOK(x,y): if 0 <= x < n and 0 <= y < m and maze[x][y] == 0: return True else: return False n,m = list(map(int,input().split())) maze = [] for i in range(n): maze.append(list(map(int,input().split()))) # 使用队列思想表示当前处于搜索状态的点,同时使用列表表示点前后间的转移 PointList = [(0,0)] fatherPointL...