Type: Default 1000ms 256MiB

求平均年龄

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

【题目描述】

班上有学生若干名,给出每名学生的年龄(整数),求班上所有学生的平均年龄,保留到小数点后两位。

【输入】

第一行有一个整数 nn1n1001\leq n\leq 100),表示学生的人数。其后 nn 行每行有 11 个整数,表示每个学生的年龄,取值为 [15,25]Z[15,25]\cap\textbf{Z}

【输出】

输出一行,该行包含一个浮点数,为要求的平均年龄,保留到小数点后两位。

【输入样例】

2
18
17

【输出样例】

17.50

【来源】

一本通在线评测

初一期中考

Not Attended
Status
Done
Rule
IOI
Problem
10
Start at
2023-4-17 8:45
End at
2023-4-17 18:45
Duration
10 hour(s)
Host
Partic.
114