n = int(input())
notas = sorted([int(input()) for i in range(n)])
media = notas.pop(0)
while notas:
media = (media + notas.pop(0))/2
print(media)
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
12 ms |
2780 KB |
Output is correct |
2 |
Correct |
14 ms |
2800 KB |
Output is correct |
3 |
Correct |
13 ms |
2800 KB |
Output is correct |
4 |
Correct |
14 ms |
2772 KB |
Output is correct |
5 |
Correct |
14 ms |
2716 KB |
Output is correct |
6 |
Correct |
13 ms |
2764 KB |
Output is correct |
7 |
Correct |
13 ms |
2764 KB |
Output is correct |
8 |
Correct |
13 ms |
2764 KB |
Output is correct |
9 |
Correct |
12 ms |
2700 KB |
Output is correct |
10 |
Correct |
13 ms |
2764 KB |
Output is correct |