Rosetta Problems

Underground labyrinth(地下迷宮)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/643