#D. 求整数的和与均值

    Type: Default 1000ms 128MiB

求整数的和与均值

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(1 <= n <= 10000)个整数,求它们的和与均值。

输入

输入第一行是一个整数n,表示有n个整数。 第2~n+1行每行包含1个整数。每个整数的绝对值均不超过10000。

输出

输出一行,先输出和,再输出平均值(保留到小数点后5位),两个数间用单个空格分隔。

样例输入

4
344
222
343
222

样例输出

1131 282.75000

专项训练之循环结构

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
10
Start at
2023-8-2 9:30
End at
2023-8-19 1:30
Duration
400 hour(s)
Host
Partic.
12