#P161. 【例27.1】 求整数的和与均值
【例27.1】 求整数的和与均值
Description
Read n (1 ≤ n ≤ 10000) integers and calculate their sum and average.
Input Format
The first line contains an integer n, indicating the number of integers.
The next n lines each contain one integer. The absolute value of each integer does not exceed 10000.
Output Format
Output a single line containing the sum and average (rounded to 5 decimal places), separated by a single space.
Sample
4
344
222
343
2221131 282.75000