← All problemsSign in

Prashant and Marks

Prashant is a professor at NIT Jalandhar. His student, Pankaj recently gave a test for n subjects. He scores Ai marks in the ith subject. Now, Prashant does very strict marking and gives negative marks too. Pankaj wants that his marks should be same in all the subjects. So, he goes to Prashant and asks for his help. Prashant says that he can help Pankaj in the following way : Pankaj can select

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