Rosetta Problems

ビンゴ

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