Rosetta Problems

仙人掌图

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