Rosetta Problems

Cave Exploration

https://atcoder.jp/contests/awc0143/tasks/awc0143_c