Rosetta Problems

ベルトコンベア (Belt Conveyor)

https://atcoder.jp/contests/joisp2023/tasks/joisp2023_d