Upgrade the grades
CodeChefOpen on judge ↗
A University has the following grading policy: - Every student receives a $grade$ in the inclusive range from 0 to 100 . - Any $grade$ less than $40$ is a failing grade. Sam is a professor at the university and likes to round each student's $grade$ according to these rules: - If the difference between the $grade$ and the next multiple of $5$ is less than $3$, round grade up to the next multipl
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