Rosetta Problems

cycle-Ⅱ

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