Rosetta Problems

Game of Distinction

https://atcoder.jp/contests/xmascon21/tasks/xmascon21_g