Duration
题号:NC207136
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Given two moments on the same day in the form of HH:MM:SS, print the number of seconds between the two moments.

输入描述:

Input two lines each contains a string in the form of , denoting a given moment.

输出描述:

Only one line containing one integer, denoting the answer.
示例1

输入

复制
12:00:00
17:00:00

输出

复制
18000
示例2

输入

复制
23:59:59
00:00:00

输出

复制
86399