#P6460. [COCI 2006/2007 #5] NATRIJ

    ID: 7222 远端评测题 1000ms 32MiB 尝试: 0 已通过: 0 显示难度普及− 上传者: 标签>2006O2优化COCI(克罗地亚)

[COCI 2006/2007 #5] NATRIJ

Problem Description

Given a start time and an end time, you need to find how long the time interval between them is.

It is guaranteed that the time interval is at least 11 second and at most 2424 hours.

Input Format

The input consists of two lines. Each line contains a string, representing the start time and the end time, respectively. The format is hh:mm:ss (hours, minutes, seconds).

The input guarantees that the hour is an integer in the range 0230\sim 23, and the minutes and seconds are integers in the range 0590\sim 59.

Output Format

Output one line with a string representing the length of the interval, in the same format as the input.

20:00:00
04:00:00
08:00:00
12:34:56
14:36:22
02:01:26

Hint

Notes

This problem is translated from COCI2006-2007 CONTEST #5 T2 NATRIJ.

Translated by ChatGPT 5