Rosetta Problems

Cat Burglar and Friday House

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