#G. 考级201909-7:求整数的和与均值

    Type: Default 1000ms 128MiB

考级201909-7:求整数的和与均值

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 位),

两个数用单个空格分隔。

输入数据 1

4

344

222

343

222

输出数据 1

1131 282.75000

数据范围与提示

一级

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
8
Start at
2023-7-24 20:45
End at
2023-8-18 20:45
Duration
600 hour(s)
Host
Partic.
26