Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- a = sorted([int(x) for x in input().split()])
- x = int(input())
- for i in a:
- y = (x+i)/2
- if y > x:
- x = y
- print("%.6f" % x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement