Maximum Score
CodeChefOpen on judge ↗
Professor A.B of the programming course has come up with a creative way to calculate the final score of a student using the marks obtained by a student in N exams for the course. The method is as follows. Professor A.B selects two numbers x and y denoting the number of multiplication and addition operations respectively that Professor A.B can perform on the marks. For example, if 4 exams were cond
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