Rosetta Problems

Collecting Balls

https://atcoder.jp/contests/arc083/tasks/arc083_d