Equal division
CodeChefOpen on judge ↗
Dilli and Surya were childhood friends. They always equally share any items they have. One day a shop named Coding magician opened an offer stating that who ever divides the N chocolates given by him in such a way that both receive an even part then he is going to give all the chocolates for free. Dilli and Surya being fond of chocolates went to that shop. Now they need your help to find whethe
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