Rosetta Problems

Go around the Labyrinth

https://onlinejudge.u-aizu.ac.jp/problems/1622