Rosetta Problems

01:01

https://atcoder.jp/contests/hbpc2012/tasks/hbpc_2