More than average
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given array of integers. Find the sum and the number of integers, greater than the arithmetic average of array elements.
Input
The first line contains number . The next line contains integers. All numbers are not greater than by absolute value.
Output
Print the sum and the number of integers, greater than the arithmetic average of array elements.
Examples
Input #1
Answer #1
Submissions 21K
Acceptance rate 37%