시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 399 | 205 | 181 | 53.550% |
The cows have enrolled in elementary statistics and are having a tough time with their homework. Please help them.
Given a set of N (1 <= N <= 500) numbers, X_i (-5,000 <= X_i <= 5000), calculate two statistics:
Your answer will be considered correct if it is within 0.002 of the official answer.
5 12 4 6 8 2
6.400000 6.000000
(12+4+6+8+2)/5=6.4
Middle number of the set {2, 4, 6, 8, 12} is 6