← All problemsSign in

Delicious Dishes

Chef has recently opened a new restaurant. He wants to serve delicious dishes to his customers. For making a dish he has n number of items available. For the ith item, he has pi grams available and for that he gets ci units of taste. His dish can weigh at most w  grams. Chef can take the whole item or any fraction of the item. He wants to maximize the taste of his dish. Please help chef in this ta

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