Chef and Masks
Chef is shopping for masks. In the shop, he encounters $2$ types of masks: - Disposable Masks — cost $X$ but last only $1$ day. - Cloth Masks — cost $Y$ but last $10$ days. Chef wants to buy masks to last him $100$ days. He will buy the masks which cost him the least. In case there is a tie in terms of cost, Chef will be eco-friendly and choose the cloth masks. Which type of mask will Chef choo
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