均值

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.

【题目描述】

给出一组样本数据,包含n个浮点数,计算其均值,精确到小数点后4位。

【输入】

输入有两行,第一行包含一个整数n(n小于100),代表样本容量;第二行包含n个绝对值不超过1000的浮点数,代表各个样本数据。

【输出】

输出一行,包含一个浮点数,表示均值,精确到小数点后4位。

【输入样例】

2
1.0 3.0

【输出样例】

2.0000

【来源】

一本通在线评测

精英班-Day02作业

Not Claimed
Status
Done
Problem
27
Open Since
2024-7-21 0:00
Deadline
2024-7-24 23:59
Extension
24 hour(s)