Passing Marks
In a class of $N$ students, a class test was held. The $i^{th}$ student scored $A_i$ marks. It is also known that the scores of all students were **distinct**. A student passes the test if their score is **strictly greater** than the passing mark. Given that exactly $X$ students pass in the test, find the **maximum** value of the passing mark of the test. ### Input - The first line of input wil
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