Beat the Average
There are $N$ students in a class. Recently, an exam on Advanced Algorithms was conducted with maximum score $M$ and minimum score $0$. The average score of the class was found out to be **exactly** $X$. Given that a student having score **strictly greater** than the average receives an `A` grade, find the **maximum** number of students that can receive an `A` grade. ### Input - First line 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