QOJ.ac

QOJ

Límite de tiempo: 1.0 s Límite de memoria: 32 MB Puntuación total: 20

#17570. NATRIJ

Estadísticas

在和平夺权失败后,Borko 决定拆毁 Mirko 的村公所——那是他忠诚的仆人们用纸板为他建造的。

为此,他将使用 Mirko 的微处理器(这是 Borko 的朋友 Zvonko 从 Mirko 那里偷来的)、一桶水和一袋钠。他将在微处理器中输入距离“爆炸”的时间,当时间一到,微处理器就会把钠丢入水中。

Borko 知道当前的时间以及他希望发生爆炸的时间。他不擅长算术,而 Zvonko 此时正在后院玩弹珠,无法帮他。

请编写一个程序,计算距离爆炸还有多长时间(即 Borko 需要输入微处理器的时长)。Borko 要求的时长至少为 1 秒,至多为 24 小时。

输入格式

输入的第一行包含当前时间,格式为 hh:mm:ss(小时:分钟:秒)。小时在 $0$ 到 $23$ 之间(含),分钟和秒在 $0$ 到 $59$ 之间。

第二行包含爆炸时间,格式相同。

输出格式

在单行中输出所需的时长,格式与输入中的时间格式相同。

样例

输入格式 1

20:00:00
04:00:00

输出格式 1

08:00:00

输入格式 2

12:34:56
14:36:22

输出格式 2

02:01:26

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.