Editorial for DMOPC '14 Contest 1 P3 - New Students

Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Keep the sum of the marks of all students stored as an integer. For every new student, add his or her mark to the sum and then output the sum divided by the total number of students.


There are no comments at the moment.