← All problemsSign in

Pleasing Chief

CodeChefRating 2066Open on judge ↗

Chef's girlfriend, Chief, is displeased with him. This is not a good sign for their relationship, and as always, he has turned to you for help. He looks forward to take his girlfriend to shopping; offering her to buy 'K' gifts. The shop that he is taking her to has 'N' unique items, that is, there is single quantity of each item (its a very special shop, you see!). Chef has with him, K discoun

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