본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 15577번 Prosjek

by 현장 2024. 6. 24.

-Code

n = int(input())
nums = sorted([int(input()) for _ in range(n)])
res = nums[0]

for i in range(1, n):
    res = (res + nums[i]) / 2

print("%.6f" %res)