Rosetta Problems

Circle Pass Game

https://atcoder.jp/contests/awc0100/tasks/awc0100_i