#D. 最大值_最小值_平均值

    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

给定n个数,求n个数的最大值,最小值和平均值。

Input Format

第一行:一个整数n。 (n<=100) 第二行:n个正整数,每个数不大于100.

Output Format

三行,第一行输出最大值,第二行输出最小值,第三行输出n个数的平均数,平均数不要小数部分。

Sample

input

3
5 6 7

output

7
5
6

Hint

保证n100n \leq 100

时间限制: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