1025 : The New Corridor
Time Limit: 1 Sec Memory Limit: 128 MB Submitted: 38 Solved: 27Description
SZTU has just opened the newly built corridor!
Xiao Ming wants to know what time to get up to ensure that he will not be late for class if he takes this route.
So he participated in the opening of the corridor and recorded the time of departure and arrival.
Can you figure out how many minutes he needs to walk for class with coding?
Input
There are multiple test cases.
In each test case, two time points in hh:mm
type are given.
Normally, Xiao Ming is unlikely to walk the corridor in the middle of the night.
So you can believe that the all the data are within the same day.
Output
Output the minutes Xiao Ming takes for each test case.
Sample
10:10 10:30 12:50 13:05
20 15
Hint
Source
深圳技术大学第一届程序设计竞赛(SZTUCPC2021)Author
CSGrandeur