Gopal and his Crying Sons
CodeChefOpen on judge ↗
Gopal recently went to foriegn trip and he brought some chocolates to his 3 sons. His 3 sons, as soon as they get their part of chocolates,they start summing up their prices. If any one of the sons gets their price less than the (total price)/3 then he will start crying. Gopal obviously hates to see them cry.So he tells you to check whether it is possible to devide chocolates such that each ge
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