#BS0000076. WiFi
WiFi
WiFi
Source: UVa
Version: Phuoc Hung OJ Extended
Problem Statement
There are houses on a straight street and at most wireless access points may be placed at arbitrary real positions. Minimize the maximum distance from any house to its nearest access point. Print the optimum with one decimal digit.
Input
The first line contains . The next lines contain house addresses.
Output
Print the optimal radius with one decimal place.
Subtasks
- Subtask 1 — 20%: .
- Subtask 2 — 30%: .
- Subtask 3 — 50%: , address .
Example
Input
2 3
1
3
10
Output
1.0
Explanation
Access points at 2 and 10 achieve maximum distance 1.0.