1181: 求平均年龄
Memory Limit:32 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:155
Solved:53
Description
某班上有学生n名,给出每名学生的年龄,计算班上所有学生的平均年龄,保留到小数点后两位。
Input
第一行有一个整数n,表示学生的人数。其后n行每行有1个整数,表示每个学生的年龄,取值为15到25。
Output
输出一行,一个浮点数,为平均年龄,保留到小数点后两位。
Sample Input Copy
3
16
18
20
Sample Output Copy
18.00
HINT
n的范围:1≤ n ≤ 100