Rosetta Problems

Cross Illumination

https://atcoder.jp/contests/awc0146/tasks/awc0146_b