Rosetta Problems

イルミネーション 2 (Illumination 2)

https://atcoder.jp/contests/joig2021-open/tasks/joig2021_c