Rosetta Problems

Fair Distribution of Sweets

https://atcoder.jp/contests/awc0170/tasks/awc0170_b