Type: Default 1000ms 256MiB

[GESP202306 一级] 时间规划

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

[GESP202306 一级] 时间规划

题目描述

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

输入格式

输入 44 行,第一行为开始时刻的小时,第二行为开始时刻的分钟,第三行为结束时刻的小时,第四行为结束时刻的分钟。输入保证两个时刻是同一天,开始时刻一定在结束时刻之前。时刻使用 2424 小时制,即小时在 002323 之间,分钟在 005959 之间。

输出格式

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

样例 #1

样例输入 #1

9
5
9
6

样例输出 #1

1

样例 #2

样例输入 #2

9
5
10
0

样例输出 #2

55

冯紫轩、叶冠呈、洪晟轩6月考级

Not Attended
Status
Done
Rule
Ledo
Problem
18
Start at
2025-6-15 14:00
End at
2025-7-14 18:00
Duration
700 hour(s)
Host
Partic.
5