Toppers Team
CodeChefOpen on judge ↗
As the $MST$ (Mid Semester Test) are over and the results are also out. There are $N$ students in the class. You are given the marks of $N$ students where $a_i$ represents the marks of $i_{th}$ roll number student. The professor wants to make a team of size $k$. He will choose top $K$ students of the class in team. Your task is to print the roll number of student who will be selected in team. I
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