Buying candies
CodeChefOpen on judge ↗
One day you have went to a supermarket to buy some candies..In that shop ,there are various types of candies .You want to buy minimum a certain number of candies and also candies of good qualities .A candy which price is more it is better than the less price’s one in quality. So ,you want to buy minimum $k$ candies and you want them if they had from good qualities. The shop has $n$ types of can
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