Shreya Loves Chocolates
CodeChefOpen on judge ↗
Shreya has come to her grandma's place for summer vacation. She finds a box full of chocolates in the refrigerator and starts blackmailing her grandma to give her the whole box. Grandma is worried about Shreya's teeth and decides to split the chocolates and put it on a plate. While filling the plates with chocolates she leaves some of the plates empty. Now grandma asks Shreya to take the chocola
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