Rosetta Problems

高速道路の建設 (Construction of Highway)

https://atcoder.jp/contests/joisc2018/tasks/joisc2018_a