← All problemsSign in

Buy Masks

You go to a shop to buy masks in this pandemic. Now, there are 3 different types of packets of mask - A packet of 10 masks - A packet of 5 masks - A packet of 1 mask You are given the costs of each packet. A packet of **10** masks costs Rs. $X$, a packet of **5 masks** costs Rs. $Y$ and a packet of **1 mask** costs Rs. $Z$. You need to find the minimum sum of rupees you need to pay

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start