Rosetta Problems

尾根 (Ridge)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/596