← All problemsSign in

Chef and Four Dishes

Chef has been assigned the task of preparing four dishes. Each dish requires some Packets of four items but their amount vary in each dish. Following is the amount of item required for preparing each dish: ``` For Dish-1: 1 Packet of item-A, 4 Packets of item-B, 3 Packets of item-C and 2-Packets of item-D. For Dish-2: 2 Packets of item-A, 1 Packet of item-B, 4 Packets of item-C and 3-Packet item

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