inline1 = input().split(' ') rows, cols = int(inline1[0]), int(inline1[1]) maze = [] for _ in range(rows): inline2 = list(map(int, input().split(' '))) maze.append(inline2) from typing import Any # rows, cols = 5, 5 # maze = [[0, 1, 0, 0, 0], # [0, 1, 1, 1, 0], # [0, 0, 0,...