← All problemsSign in

The Show Must Go On

Problem Description Dwij has been working for the IEM Coding Olympiad for the past 2 years, and now it is time for him to move on to a new phase of his life. But as they say, no matter what happens, The Show Must Go On. Dwij needs to select some of his juniors to take over his place. He has a list containing the Codechef ratings of n of his juniors. He also has a number k which is the minimum r

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