1815: 【CSP数组】优秀成绩的平均分█
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:7
Solved:5
Description
期中考试结束了,老师想知道这次语文考试前 5 名同学的平均分是多少,请你编程来帮老师计算一下!
Input
第一行,一个整数 n ,代表本次考试的总人数( 5≤n≤100 );
第二行 n 个整数,代表 n 个人的语文成绩(这 n 个人的分数是无序的)。
Output
语文成绩前 5 名同学的平均分(结果保留 1 位小数)。
Sample Input Copy
10
98 98 100 96 99 90 91 87 80 100
Sample Output Copy
99.0