Rosetta Problems

Table Tennis Training

https://atcoder.jp/contests/agc041/tasks/agc041_a