Rosetta Problems

山峰和山谷

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