#P9152. Divide the Sweets

Divide the Sweets

Source: Super League of Chinese College Students Algorithm Design 2022, Contest 3 by Claris.