← All problemsSign in

Passing Grade

CodeChefRating 629Open on judge ↗

Chef is in a class in his university with a total of $N$ students (including him). Chef's professor likes Chef but hates the entire class. Chef's professor has just finished grading their exam papers, and it is known that the $i$-th student has scored $A_i$ marks. Chef is student number $1$, and the other students are numbered from $2$ to $N$. Chef's professor cannot change the marks the student

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