千百万惶恐的生灵在莫名的隧道迷宫和小巷中蹿行。
Inside millions of terrified Beings scurry about through senseless mazes of tunnels and lanes.
每行描述了迷宫矩阵的一行。
每个测试案例的第一行包含两个整数M和N,表明迷宫的大小。
The first line of each test case contains two integers m and n, indicating the size of the maze.
应用推荐