Not everyone has to pay
CodeChefOpen on judge ↗
Chef is opening a new restaurant and is busy in managing the restaurant so is asking for your help. He has planned to present the customers with dishes rated by him as non negative integers.He has a list of N dishes. He had made a scheme that every customer will be given exactly 3 dishes out of these N dishes which are presented in front of the customer in ascending order of their rating as dec
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