Rosetta Problems

コイン集め (Coin Collecting)

https://atcoder.jp/contests/joi2019ho/tasks/joi2019ho_d