Submission #6990061


Source Code Expand

Copy
N = int(input())
v = list(map(int, input().split()))

v.sort()
tmp_avg = (v[0] + v[1]) / 2
for i in range(2, len(v)):
    tmp_avg = (tmp_avg + v[i]) / 2
    
print(tmp_avg)

Submission Info

Submission Time
Task C - Alchemist
User katom
Language Python (3.4.3)
Score 300
Code Size 180 Byte
Status AC
Exec Time 17 ms
Memory 2940 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 13
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13
Case Name Status Exec Time Memory
a01 AC 17 ms 2940 KB
a02 AC 17 ms 2940 KB
a03 AC 17 ms 2940 KB
b04 AC 17 ms 2940 KB
b05 AC 17 ms 2940 KB
b06 AC 17 ms 2940 KB
b07 AC 17 ms 2940 KB
b08 AC 17 ms 2940 KB
b09 AC 17 ms 2940 KB
b10 AC 17 ms 2940 KB
b11 AC 17 ms 2940 KB
b12 AC 17 ms 2940 KB
b13 AC 17 ms 2940 KB