Rosetta Problems

Balls and Bag Query

https://atcoder.jp/contests/abc366/tasks/abc366_c