1348: 【c07】数据统计▅for_if
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:12
Solved:11
Description
输入一些整数xi,求出它们的最小值、最大值和平均值。
Input
输入一行一个正整数n,表示输入整数的个数。
1 ≤ n ≤ 100 xi取值范围在int内。
第2行n个整数。
Output
输出一行,第一个正整数是最小值;第二个正整数是最大值;第三个实数是平均值。
Sample Input Copy
6
1 9 7 6 7 1
Sample Output Copy
1 9 5.16667