Advertisement
Guest User

175

a guest
Apr 8th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. n = int(input())
  2. a = sorted([int(x) for x in input().split()])
  3. x = int(input())
  4.  
  5. for i in a:
  6.     y = (x+i)/2
  7.     if y > x:
  8.         x = y
  9.  
  10. print("%.6f" % x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement