Rosetta Problems

Figure Skating Qualifying Round

https://atcoder.jp/contests/awc0111/tasks/awc0111_a