Truck Driving

Truck Driving

Лимит времени 1 секунда
Лимит использования памяти 64 MiB

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.

Входные данные

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, C (2 ≤ C ≤ 200), which is the number of cities. The next C lines each contain two integers x, y (0 ≤ x, y ≤ 1000) representing the coordinate of one city. First city is the source city and second is the destination city of Umidsh.

Выходные данные

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.


Входные данные #2
0 0
3 4
17 4
19 4
18 5
Выходные данные #2