Rosetta Problems

梦幻岛的宝石

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