Rosetta Problems

Collecting Coins on the Walking Path

https://atcoder.jp/contests/awc0152/tasks/awc0152_a