Chef and sweets
CodeChefOpen on judge ↗
Some guests have visited the chef's house and it has been ordered by a chef wife to bring some sweets for the guests. Chef wife gave him two things for completing the task: 1. The list of sweets which he needs to buy . 2. An adequate amount of money to buy those sweets. The chef being clumsy, misplaced the list. Now chef being scared from his wife wrath thought of a way of saving himself. Since
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