Rosetta Problems

菊花链

https://www.acwing.com/problem/content/3350