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

Турниры > "Informatics Stars" Online Contests - 2011-2014 > задача:


50325 - How much time passed?

"Informatics Stars" Online Contests - 2011-2014

Старт: 20.окт.2012 в 10:00:00
Финиш: 20.окт.2012 в 15:00:00
Турнир завершён!
• Турнирная таблица

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

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

• 50326 - Matrix Operations
• 50325 - How much time passed?
• 50776 - Numri i rrugeve te ndryshm...
• 50779 - Rruga me e shkurter ne lab...
• 2011-04-1. 50586 - Palindrome te th...
• 2011-04-2. 50585 - Prodhimi i brend...
• 2011-04-3. 50587 - Shnderrimi i n...
• 2011-05-1. 50767 - Censura
• 2011-05-2. 50652 - Faktorizimi ne n...
• 2011-05-3. 50653 - Pjesetimi i gjate

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

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

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

How much time passed?

The boss Mr. Ervin Shehu is a very punctual man. That's why, he has decided to buy a new electronic card system which records the coming and leaving times of the staff. Mr. Shehu wants you to write a program to calculate the work time of the staff from their electronics card information.

Input specification
You will be given two time informations in a line separated by a space (time1 time2). Every time information contains three integers separated by two semicolons ':' (hh:mm:ss hh:mm:ss) where 0 ≤ hour ≤ 23, and 0 ≤ minute, second ≤ 59. And, it's guaranteed that time1 < time2.

Output specification
Give three integers (hours:minutes:seconds) separated by semicolons ':' which represent the time passed between the two given times.

 Sample Input I  
  8:30:26 12:48:54
 Sample Output I  
  4:18:28
 Sample Input II  
  18:12:15 22:23:54
 Sample Output II  
  4:11:39

Note: In MS. Excel, you can subtract a time from another as in the figure below.
  


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

www.contester.ru