Rosetta Problems

Lighting the Decorations

https://atcoder.jp/contests/awc0181/tasks/awc0181_d