← All problemsSign in

Chocolate Distribution

CodeChefRating 595Open on judge ↗

Christmas is the season of giving. As a part of celebrating the New Year, you decided to give away chocolates to the poor children in your neighbourhood. Some of them even asked for $2$ chocolates and being the kind soul that you are, you always gave them if you could. They never asked for more than $2$ though because they are not greedy. Now, you have forgotten exactly how many children you ga

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start