Rosetta Problems

コンテスト

https://atcoder.jp/contests/joi2009yo/tasks/joi2009yo_b