#P6460. Time Interval Calculation
Time Interval Calculation
Time Interval Calculation
Given a start time and an end time in the format HH:MM:SS, calculate the interval between them in seconds.
The interval is guaranteed to satisfy the condition: \(1 \leq \text{interval} \leq 24\times3600\). If the end time is not later than the start time, assume the end time occurs on the next day.
inputFormat
The input consists of two lines. The first line is the start time and the second line is the end time, both in the HH:MM:SS format.
outputFormat
Output a single integer representing the interval between the two times in seconds.
sample
12:00:00
12:00:01
1