Rosetta Problems

Circular Tree Embedding

https://atcoder.jp/contests/arc199/tasks/arc199_c