Average Score
CodeChefOpen on judge ↗
Rohit Sharma was going through his scorecard of the previous world cup matches. He has played a total of N matches and has scored A1, A2, A3, ..., AN runs in the matches. During the selection process, Dhoni wants to know the average score of Rohit Sharma. So, Rohit Sharma calculates his average as follows: - He picks a match i (other than the last match) and replaces the score of Ai and Ai+1 matc
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