Problem 1103 · Easy

Distribute Candies to People

Deal increasing amounts round the people in a cycle, capping the last gift at the candies that remain.

Open the interactive visualisation