Rosetta Problems

Ball Distribution

https://atcoder.jp/contests/diverta2019-2/tasks/diverta2019_2_a