Rosetta Problems

Tournament Elimination Round

https://atcoder.jp/contests/awc0085/tasks/awc0085_a