Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem2259--均值
2259: 均值
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
70
Solved:
18
[
Status
] [
Submit
] [Creator:
]
Description
给出一组样本数据,包含n个浮点数,计算其均值
Input
输入有两行,第一行包含一个整数n(n小于100),代表样本容量;第二行包含n个绝对值不超过1000的浮点数,代表各个样本数据。
Output
输出一行,表示均值
Sample Input
Copy
2 1.0 3.0
Sample Output
Copy
2
Source/Category
循环结构
YBT
level1