Type: Default 1000ms 256MiB

求平均值

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.

Description

要求输入任意个正整数,然后求其平均值,输入时以输入一个0作为终止标志,但0不计入数字的个数。

Input Format

一行 n个整数,第n+1个数是0。 注意n不会给出。

Output Format

这n个数的平均值。要求保留1位小数。

Sample

input

3 4 5 0

{样例解释,给的是三个数字。}

output

4.0

Hint

时间限制:1s1 \text {s}

空间限制:256MB256 \text {MB}

20200910-基础递归训练

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2020-9-13 15:29
End at
2020-10-1 15:29
Duration
432 hour(s)
Host
Partic.
18