#P8717. [蓝桥杯 2020 省 AB2] 成绩分析
[蓝桥杯 2020 省 AB2] 成绩分析
Problem Description
Xiao Lan organized an exam for the students. The full score of the paper is points, and each student's score is an integer from to .
Please compute the highest score, the lowest score, and the average score for this exam.
Input Format
The first line of input contains an integer , which indicates the number of students taking the exam.
The next lines each contain an integer from to , representing a student's score.
Output Format
Output three lines.
The first line contains an integer, representing the highest score.
The second line contains an integer, representing the lowest score.
The third line contains a real number, rounded to exactly two decimal places, representing the average score.
7
80
92
56
74
88
99
10
99
10
71.29
Hint
For of the testdata, .
For all testdata, .
Lanqiao Cup 2020 Round 2 Provincial Contest, Group A Problem F (Group B Problem F).
Translated by ChatGPT 5