← All problemsSign in

salon du chocolate

Your best friend likes to eat chocolates very much. There is a chocolate eating competition in your area and your friend wants to win it. There will be N chocolates of different kinds and each chocolate will take some amount of time to eat. For each chocolate , the participant will get one point.Your friend wants to win that competition and needs help from you. Your task is to tell the maximum

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