eolymp
bolt
Try our new interface for solving problems
Problems

Truck Driving

Truck Driving

Umidsh Izadish is a truck driver and wants to drive from a city to another city while there exists a dedicated straight road between each pair of cities in that country. Amount of consumed fuel is the distance between two cities which is computed from their coordinates. There is a gas station in each city, so Umidsh can refuel the gas container of his truck. Your job is to compute the minimum necessary volume of gas container of Umidsh’s Truck. \InputFile The first line of input contains an integer, the number of test cases. Following, there are data for test cases. Each test case begins with a line containing one integer, \textbf{C} (\textbf{2} ≤ \textbf{C} ≤ \textbf{200}), which is the number of cities. The next \textbf{C} lines each contain two integers \textbf{x}, \textbf{y} (\textbf{0} ≤ \textbf{x}, \textbf{y }≤\textbf{ 1000) }representing the coordinate of one city. First city is the source city and second is the destination city of Umidsh. \OutputFile There should be one line for each test case in output. Each line should contain one floating point number which is the minimum necessary volume of truck’s gas container, printed to three decimals.
Time limit 1 second
Memory limit 64 MiB
Input example #2
2
2
0 0
3 4
3
17 4
19 4
18 5
Output example #2
5.000
1.414