Rosetta Problems

ベルトコンベア (Belt Conveyor)

https://atcoder.jp/contests/joigsp2023/tasks/joigsp2023_d