Shubham and Birthhday Candies
CodeChefOpen on judge ↗
It is Shubham's Birthday and he has decided to invite his friends to his birthday. At the party, there is a container which is full of candies. Suddenly, the container fell down and all the candies spread on the floor. Now all his friends try to snatch as many candies as possible . But Shubham loves all his friends equally. So he decided to equally distribute the candies among all the friends. For
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.
Sign in to chat with the tutor and save your progress.
Sign in to start