Rosetta Problems

The Fate of the Vote

https://atcoder.jp/contests/awc0130/tasks/awc0130_a