Problem E: 4-循环结构-平均数

Problem E: 4-循环结构-平均数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 51  Solved: 40
[Submit] [Status] [Web Board] [Creator:]

Description

求若干个整数的平均数。

Input

有多组数据,每组数据由一个整数n(n≤50)打头,表示后面跟着n个整数。

Output

对每组数据,输出其平均数,精确到小数点后3位。

Sample Input

3 6 5 18
4 1 2 3 4

Sample Output

9.667
2.500

[Submit][Status]