Time Difference
Submissions: 378   Accuracy:

40.19%

  Difficulty: Easy   Marks: 2

Given the start time and end time of a race in the format hh:mm:ss. You task is to print the time taken to complete the race.

Input :
The first line of input contains an integer T, denoting number of test case. Then T test cases follow. The first line of each test case contains string s, denoting the start time of the race. The second line of each test case contains a string e, denoting the end time of the race.

 

Output :
For each test case in a new line print the time taken to complete the race in the format hh:mm:ss.


Constraints :
1<=T<=100
0<=hh<=23
0<=mm<=59
0<=ss<=59
start time<=end time


Example:
Input :

2
13:50:45
14:55:50
12:00:00
24:00:00

Output:
01:05:05
12:00:00


 

** For More Input/Output Examples Use 'Expected Output' option **

Author: Sonesh Shukla


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.