ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Сборники > Data Structures > задача:


50415 - The Scientist

Гость
• Вопросы к жюри (1)

Задачи сборника

• 50479 - Bit Compressor
• 50383 - Noisy Mornings
• 50486 - Problems and Programmers
• 50695 - Longest link between neurons
• 50677 - The Cottage
• 50414 - Traffic
• 50698 - Ayran Delivery
• 50700 - Candidates for the Mayor
• 50415 - The Scientist
• 50830 - Sorting BST Nodes
• 50803 - Sum of the depths in BST
• 50805 - Sum of the weights in a BST
• 50712 - Moon algebra
• 50978 - Albanian Coders
• 50699 - Fighting Vampires
• 50679 - Jetpack Hurdle Jumping
• 50717 - Hurdle Jumping

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Erjon Dauti.

The Scientist

Mr. Arlind is a scientist and works on water waves. To study water waves, he has a machine that throws objects with identical masses and shapes in a pond (i.e. all the objects thrown cause identical waves in water). This machine allows you to adjust the number of objects that can be thrown and at the same time the positions where this objects will be thrown (defined by Cartesian coordinates). But there is a problem. Mr. Arlind does not want the waves to interfere (contact) with each other because it will cause wrong measurements. He knows that the mass of the object and the radius of the wave it causes are directly proportional. If he would know the maximum radius of the waves so that they do not interfere with each other. Then, at the same time, he would know the maximum mass he is allowed to use. Help Mr. Arlind to solve his problem.

Question: Write a program that gets the number (n) of objects to be thrown by the machine and the Cartesian coordinates of the (n) places where the objects will be thrown by the machine and show the maximum radius of the waves such that they do not interfere with each other. Remember all the waves are identical!

Input specification
You will be given a number (n) in the first line where (n) is between 2 and 40000. Then in the following (n) lines, you will be given (n) integer pairs (x, y) where -50000 ≤ x, y ≤ 50000.

Output specification
Show the maximum radius of waves with at most 3 decimal places after the floating point.

Sample Input I
2
1 3
5 6
Sample Input II
3
1 3
5 7
3 5
Sample Output I
2.500
Sample Output II
1.414


Для отправки решений необходимо выполнить вход.

www.contester.ru