Rosetta Problems

High-powered Illuminations

https://atcoder.jp/contests/xmascon16midnight/tasks/xmascon16_h