Rosetta Problems

ハードル走

https://atcoder.jp/contests/njpc2017/tasks/njpc2017_c