← All problemsSign in

Problem 5

Sarath, the panda is one of the organisers of Currents, and he is extremely fond of Chocolate ice creams. He was assigned the responsibility of setting up food stalls for Currents. He got proposals from N ice cream companies each quoting a price that is to be paid to them for setting up their stall. More than brands Sarath is the type of person who values the quality and variety of ice cream. So

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