Rosetta Problems

河流跳房子

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