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

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


100. 50532 - Close City

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

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

• 060. 50583 - Numri ma te madhe n...
• 062. 50402 - Hello World!
• 063. Cifti me i afert
• 065. 50436 - Pocket Money
• 068. 50581 - Rrenjet e Ekuacionit K...
• 070. 50439 - Telephone Calls
• 080. 50478 - Letter Grades
• 090. 50422 - Area and Perimeter of...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...
• 140. 50417 - Fun Fair
• 150. 50500 - Find Student
• 222. 50302 - Paper Scissors Rock
• 260. 50460 - Numrin e Mesem

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

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

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

Close City

Question: You can find Epoka University on the map using

  • Decimal Deg. Latitude: 41.404974
  • Decimal Deg. Longitude: 19.705841
You are asked to find Euclidean distance of some cities. You will be given Latitude and Longitude coordinates of a city and then, two other cities. Find the closer city to the first one.

Input specification
You will be given a string (city name) and two floating point numbers (Latitude and Longitude coordinates of each city) in three lines where (W/E) -180 ≤ Longitude ≤ 180 and (S/N) -90 ≤ Latitude ≤ 90. And, city name is not longer than 15 characters and contains only English letters (no special characters).

Output specification
Show the name of the closer city.

 Sample Input I     Sample Output I   
 Tirana 41.328114 19.818338
 Durres 41.313835 19.446037
 Kruje 41.506900 19.793683
 Kruje


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

www.contester.ru