#B3838. Minutes Difference Calculator

    ID: 11495 Type: Default 1000ms 256MiB

Minutes Difference Calculator

Minutes Difference Calculator

Xiao Ming is planning his study time. Now, he wants to know the number of minutes between two given moments. Given two time points in the format (HH:MM) (24-hour format) separated by a space, calculate the difference in minutes.

inputFormat

A single line containing two time points in the format HH:MM separated by a space. Assume the times are on the same day and the second time is later than or equal to the first time.

outputFormat

Output a single integer representing the total number of minutes between the two time points.

sample

10:00 11:00
60