题目描述
Problem Description
Xiao Ming is planning his study time. Now he wants to know how many minutes are between two given times. Can you help him by programming this?
Input Format
The input consists of 4 lines. The first line is the hour of the start time, the second line is the minute of the start time, the third line is the hour of the end time, and the fourth line is the minute of the end time. The input guarantees that both times are on the same day, and the start time is always before the end time. The time uses a 24-hour format, meaning the hour ranges from 0 to 23 and the minute ranges from 0 to 59.
Output Format
Output a single line containing an integer, which is the number of minutes from the start time to the end time.
Sample Input and Output
Sample Input #1
9
5
9
6
Sample Output #1
1
Sample Input #2
9
5
10
0
Sample Output #2
55
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分