Rosetta Problems

Laser Marking

https://atcoder.jp/contests/abc374/tasks/abc374_d