Rosetta Problems

City Walk and Tolls

https://atcoder.jp/contests/awc0050/tasks/awc0050_d