Rosetta Problems

Gather the Maps!

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