Rosetta Problems

Revenge of the Broken Door

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