Rosetta Problems

Selection of a Mountain Climbing Route

https://atcoder.jp/contests/awc0093/tasks/awc0093_d