favorite Нам необхідно трохи Вашої допомоги щоб сайт продовжував працювати, натисніть на банер щоб дізнатись більше.

Рух вантажівки

Рух вантажівки

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 (2C200), which is the number of cities. The next C lines each contain two integers x, y (0x, 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.

Ліміт часу 1 секунда
Ліміт використання пам'яті 64 MiB
Вхідні дані #2
0 0
3 4
17 4
19 4
18 5
Вихідні дані #2