#P8717. [蓝桥杯 2020 省 AB2] 成绩分析

    ID: 9641 远端评测题 1000ms 128MiB 尝试: 0 已通过: 0 显示难度入门 上传者: 标签>模拟2020Special Judge蓝桥杯省赛

[蓝桥杯 2020 省 AB2] 成绩分析

Problem Description

Xiao Lan organized an exam for the students. The full score of the paper is 100100 points, and each student's score is an integer from 00 to 100100.

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 nn, which indicates the number of students taking the exam.

The next nn lines each contain an integer from 00 to 100100, 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 50%50\% of the testdata, 1n1001 \leq n \leq 100.

For all testdata, 1n100001 \leq n \leq 10000.

Lanqiao Cup 2020 Round 2 Provincial Contest, Group A Problem F (Group B Problem F).

Translated by ChatGPT 5