Rosetta Problems

Shortest Path on a Line

https://atcoder.jp/contests/nikkei2019-2-qual/tasks/nikkei2019_2_qual_d