Toggle navigation
HUSTOJ
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
[
ProblemSet
Status
Ranklist
OI Ranklist
Statistics
]
Login
Problem G: 求平均年龄
Problem G: 求平均年龄
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
22
Solved:
16
[
Status
] [
Submit
] [Creator:
]
Description
班上有学生若干名,给出每名学生的年龄(整数),求班上所有学生的平均年龄
Input
第一行有一个整数n(1≤ n ≤ 100),表示学生的人数。其后n行每行有1个整数,表示每个学生的年龄,取值为15到25。
Output
输出一行,为要求的平均年龄
Sample Input
Copy
2 18 17
Sample Output
Copy
17.5