Neha and Birthday Shopping
CodeChefOpen on judge ↗
Its Neha's best friends birthday. Her best friend is very fond of collecting stones. She wants to give her N stones of different types. So she asked her another friend to go and ask the rates of each stone in M different shops. Now, Neha wants to spend the minimum amount to purchase all the stones. So, She asked for your help to find the minimum cost that she need to spend to purchase all the ston
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