Phoenix and Chocolates
CodeChefOpen on judge ↗
Phoenix’s Dad has always had an obsession with odd numbers and chocolates. Once, there was a SALE going on in the most reputed chocolate producer in the city and so his Dad sent Phoenix to get some. But, it can’t be for such a simple reason that Phoenix has again asked for your help and he is crying near the sweet shop because he doesn’t know what to do. You are a good man and so you approach him
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