Submission #6987867


Source Code Expand

Copy
n = int(input())
a = list(map(int,input().split()))
a.sort()

while(len(a) > 1):
	su = (a[0] + a[1])/2
	del a[0]
	del a[0]
	a.append(su)
	a.sort()

print(a[0])

Submission Info

Submission Time
Task C - Alchemist
User guvi007
Language PyPy3 (2.4.0)
Score 300
Code Size 170 Byte
Status AC
Exec Time 163 ms
Memory 38512 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 162 ms 38512 KB
a02 AC 161 ms 38256 KB
a03 AC 160 ms 38256 KB
b04 AC 160 ms 38256 KB
b05 AC 160 ms 38256 KB
b06 AC 160 ms 38256 KB
b07 AC 160 ms 38256 KB
b08 AC 161 ms 38256 KB
b09 AC 163 ms 38256 KB
b10 AC 162 ms 38256 KB
b11 AC 163 ms 38256 KB
b12 AC 162 ms 38256 KB
b13 AC 161 ms 38256 KB