Rosetta Problems

円環の理

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/931