Rosetta Problems

Gift Distribution

https://atcoder.jp/contests/awc0077/tasks/awc0077_e