Rosetta Problems

View of the Mountain Range

https://atcoder.jp/contests/awc0106/tasks/awc0106_d