HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > HW1_CEN109_2017 > problem:


4. 51172 - The biggest Minute

HW1_CEN109_2017

Start: Jan.20.2018 at 11:48:29 AM
Finish: Jan.28.2018 at 05:00:15 AM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (3)

Contest problems

• 1. 51165 Question 1
• 2. 51175 Question 2
• 3. 51171 Question 3
• 4. 51172 - The biggest Minute
• 5. 51173 Question 5

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
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 the first one  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