Rosetta Problems

Merchant on the Highway

https://atcoder.jp/contests/awc0001/tasks/awc0001_d