← 返回 meta 的题目列表Determine the Latest Passed Bus Time
类型:online_judge
Given a list of bus departure times in HH:MM format and a current time in HH:MM format, determine the closest bus departure time that has already passed relative to the current time. Return the difference in minutes between the current time and this latest passed bus time. If no bus has passed, return -1.
Example
Input
12:30,14:00,19:55,14:30