Dividing the Spoils
CodeChefOpen on judge ↗
After a long night of candy gathering, you and your friends have all gathered up to enjoy the spoils. All of the candy gets dumped on the table and distributed evenly. As the master programmer, your job is to take in a list of all the candies on the table and distribute each candy category evenly among you and your crew of candy hunters. Wrapped candy cannot be divided up, so your program sho
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