Rosetta Problems

三角网格图中的岛

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