#P8717. Exam Scores Calculation
Exam Scores Calculation
Exam Scores Calculation
In this problem, Xiao Lan organized an exam for the students with a total score of \(100\) points. Each student's score is an integer between \(0\) and \(100\). You are required to calculate the highest score, the lowest score, and the average score of the exam.
inputFormat
The first line contains an integer \(n\) denoting the number of students. The second line contains \(n\) space-separated integers representing the scores of the students.
outputFormat
Output three values: the highest score, the lowest score, and the average score. If the average score is an integer, print it as an integer; otherwise, print it as a decimal number with one digit after the decimal point.
sample
5
60 70 80 90 100
100 60 80