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

Турниры > CEN303 2013-15 Questions > задача:


14-Fall2-10. 50751 - The biggest Minute

CEN303 2013-15 Questions

Старт: 15.дек.2013 в 14:00:00
Финиш: 15.дек.2013 в 19:00:00
Турнир завершён!
• Турнирная таблица

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

Задачи турнира

• 13-Fall2-40. 50753 - Average of the...
• 13-Fall2-50. 50686 - The Container
• 14-Fall1-10. 50740 - Service Time - 1
• 14-Fall1-20. 50750 - Service Time - 2
• 14-Fall1-30. 50771 - BST Level Sum
• 14-Fall1-40. 50683 - Te Parkojme A...
• 14-Fall1-50. 50770 - Average Depth
• 14-Fall1-60. 50784 - Top Growing C...
• 14-Fall2-10. 50751 - The bigge...
• 14-Fall2-20. 50794 - Writing Files Int...
• 14-Fall2-30. 50490 - Across the River
• 14-Fall2-40. 50772 - The Path of a N...
• 14-Fall2-50. 50681 - Center of a Series
• 14-FallResit-10. 50525 - Ordering Pizza
• 14-FallResit-20. 50488 - Connecting...
• 15FE-01. 50851 - Repeated Numbers
• 15FE-01. 50838 - Balanced Numbers

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

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

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

The biggest Minute

Eurasia marathon is run every year in Istanbul. And many athletes run for the medals from one continent to another. Their running times are recorded in seconds. This year, there is a special sponsor for the competition: Big watches co. clock company. They want to give a special prize for the runner whose running time has the biggest minute.

  • One Hour is 60 minutes
  • One minute is 60 seconds

Question: You will be given n time information in seconds. Write a program that converts these time information into hours, minutes and seconds. Then, your program finds the winner for this special prize.

Input specification:
The first line contains an integer number (N) where 0 ≤ N ≤ 2000. Each of the following N lines will contain an integer number which is between 0 and 20000.

Output specification:
You will show one integer number which is the order of the athlete who has the biggest minute. Assume that order of athletes start from 1. Note: If there are several athletes having the same max minutes, show the one with the least hours. If there are several athletes with the same hours and minutes then show them in ascending order according to their order given in the input.

Sample Input 1 Sample Output 1
4
3626
749
1780
8674
3

Explanation:

  1. 3626 seconds is 1 Hour, 0 minute and 26 seconds
  2. 749 seconds is 0 Hour, 12 minutes and 29 seconds
  3. 1780 seconds is 0 Hour, 29 minutes and 40 seconds
  4. 8674 seconds is 2 Hours, 24 minutes and 34 seconds
So, the third athlete has 29 minutes.

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

www.contester.ru