Jamie and The Garment Sale
CodeChefOpen on judge ↗
It’s clearance season and Jamie has gone to a special Garments Sale. He is offered with different models of each type of garment (for example 3 pants, 2 belts, 4 shirts etc.) but is only allowed to buy one model of each type of garment (i.e. only 1 pant, 1 belt, 1 shirt etc.). Jamie’s budget is limited and cannot think of spending more money than it but he wants to spend the maximum amount of mon
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