DWITE, February 2013, Problem 1
Travelling can be very tiresome. One of the most annoying aspects of travelling is adjusting your watch to the appropriate time, after reaching the destination. Being an avid traveller yourself, you decide to write a program to help you determine the local time at the time of arrival.
The input will contain 5 test cases. Each test case consists of one line containing a timestamp 13:59:05
) and a space separated pair of numbers
The output will contain 5 lines of output. The 24-hour timestamp of the expected local time at the destination.
Notes on sample data: The first case starts out at
Sample Input (first 4 cases shown)
03:01:01 10 0
03:02:02 10 5
03:03:03 10 -23
00:00:00 0 0
Sample Output (first 4 cases shown)
13:01:01
18:02:02
14:03:03
00:00:00
Problem Resource: DWITE
Comments