Problem3108--时间规划

3108: 时间规划

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

小明在为自己规划学习时间。现在他想知道两个时刻之间有多少分钟,你能通过编程帮他做到吗?

Input

输入 lns="http://www.w3.org/1998/Math/MathML">4 行,第一行为开始时刻的小时,第二行为开始时刻的分钟,第三行为结束时刻的小时,第四行为结束时刻的分钟。输入保证两个时刻是同一天,开始时刻一定在结束时刻之前。时刻使用 lns="http://www.w3.org/1998/Math/MathML">24 小时制,即小时在 lns="http://www.w3.org/1998/Math/MathML">0 到 lns="http://www.w3.org/1998/Math/MathML">23 之间,分钟在 lns="http://www.w3.org/1998/Math/MathML">0 到 lns="http://www.w3.org/1998/Math/MathML">59 之间。

Output

输出一行,包含一个整数,从开始时刻到结束时刻之间有多少分钟。

Sample Input Copy

9
5
9
6

Sample Output Copy

1

HINT

样例输入2:
9
5
10
0
样例输出2:
55

Source/Category