Sad Boys
CodeChefOpen on judge ↗
Problem description Delhi boys love candies and have brought some to their school assembly on Christmas. N boys are present on that day and each boy has a different number of candies(Ci) with him. But after seeing some boys (with lesser candies) sad, the Principal decides to put a smile on their faces by pooling all the candies in one big basket and distributing them equally among all. But after
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