Rosetta Problems

Belt Conveyor

https://atcoder.jp/contests/awc0066/tasks/awc0066_a