report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Radar - MarisaOJ: Marisa Online Judge

Radar

Time limit: 1000 ms
Memory limit: 256 MB
There are $n$ radars on a 2D plane. The $i^{th}$ is located at the point $(x_i, y_i)$. All $n$ radars have the same trasmitting power $R$. Radar $A$ and radar $B$ can be connected directly if their distance does not exceed $2 \times R$, or they can be connected through another intermediate radar. Find the minimum possible $R$ so that $n$ radars are connected. ### Input - The first line contains an integer $n$. - The next $n$ lines, each line contains 2 integers $(x_i, y_i)$. ### Output - Print the minimum $R$, rounding **exactly** to 6 decimal places. ### Constraints - $1 \le n \le 10^3$. - $1 \le x_i, y_i \le 10^9$. ### Example Input: ``` 7 2 3 3 4 4 5 0 1 3 1 4 2 1 5 ``` Output: ``` 1.414214 ```
BFS / DFS
Connected component
Shortest path
Finding the path
Path on binary matrix
Garden
Operations on number
Bipartite graph
Tom and Jerry
Festival 1
Bamboo Forest of the Lost
Radar
Festival 2
Go
Escape from... dolls
Long leg
Lexicographically smallest path
Graph coloring
Topic
Binary search
Graph
Rating 1200
Solution (2) Solution