492B. Vanya and Lanterns
binary search/implementation/math/sortings, 1200, https://codeforces.com/problemset/problem/492/B
Vanya walks late at night along a straight street of length
Vanya wonders: what is the minimum light radius
Input
The first line contains two integers
The next line contains n integers a~i~ (0 ≤ a~i~ ≤
Output
Print the minimum light radius
Examples
input
7 15
15 5 3 7 9 14 0output
2.5000000000input
2 5
2 5output
2.0000000000Note
Consider the second sample. At d = 2 the first lantern will light the segment [0, 4] of the street, and the second lantern will light segment [3, 5]. Thus, the whole street will be lit.
n,l=map(int,input().split())
a=list(map(int,input().split()))
ans=0
a.sort()
for i in range(n-1):
ans = max(ans, (a[i+1]-a[i])/2)
print(max(ans, a[0], l-a[-1]))