Rosetta Problems

Deterministic Placing

https://atcoder.jp/contests/arc142/tasks/arc142_d