Rosetta Problems

イルミネーション (Illumination)

https://atcoder.jp/contests/joi2012yo/tasks/joi2012yo_e