Harry and chocolates
CodeChefOpen on judge ↗
Little Harry is very sad that he is not able to meet his friends during the quarantine. So, to make Harry happy his uncle Sirius gives him chocolates for the next N number of days. Harry finishes eating the chocolates he has received on a particular day, on the same day itself. But uncle Sirius is also concerned that Harry might eat too many chocolates, so he has asked for your help. - Here’s ho
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