最大值_最小值_平均值
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
保证。
时间限制:
空间限制:
20201007am基础代码测试
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2020-10-7 11:00
- End at
- 2020-10-7 11:10
- Duration
- 0.2 hour(s)
- Host
- Partic.
- 16