Chef Organizes Party
CodeChefOpen on judge ↗
Chef has organized a party. He has Invited his $N$ friends. Chef has made a special soft drink for the party. To serve it, he asked his friends to choose a glass of their preferred capacity. Each of the $N$ friends have chosen a glass of capacity $A_i$ liters. Chef had made an infinite amount of that special soft drink and stored it in a very large tank. Now, Chef has to choose a container of capa
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