Rosetta Problems

Equal Distribution of Cake

https://atcoder.jp/contests/awc0047/tasks/awc0047_d