Naman and Ice-Cream
CodeChefOpen on judge ↗
Naman owns a very famous Ice Cream parlour in Pune. He has a wide range of flavours with different pricing. Every flavour costs ₹ X per gram and quantity of each flavour in the parlour is indefinite. Now, Naman has received an order for a party wherein he is asked to prepare each Ice Cream with N number of flavours. He needs to prepare each Ice Cream of W grams and at the same time has to keep
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