P27850 [洛谷] [Information and Future 2023] Precision Timing
普及-
题目描述

Problem Description

Xiao Xiao has a very precise timer that can count 100 times per second (the interval between two consecutive clock counts is exactly one-hundredth of a second). For example, the following is the timing process from $13:01:02.37$ to $13:01:03.01$:

13:01:02.37 (13 hours 1 minute 2 seconds.37)
13:01:02.38
13:01:02.39
...
13:01:02.98
13:01:02.99 (13 hours 1 minute 2 seconds.99)
13:01:03.00 (13 hours 1 minute 3 seconds.00)
13:01:03.01

Xiao Xiao has recorded two moments on the timer. Can you help him calculate how many "one-hundredth of a second" have elapsed between these two moments?

Input Format

The input data consists of a single line containing two space-separated strings representing the two moments displayed on the timer. The hours, minutes, seconds, and one-hundredth of a second are all represented using two decimal digits, with leading zeros added if necessary. The hours, minutes, and seconds are separated by colons :, and the seconds and one-hundredth of a second are separated by a decimal point ..

Output Format

Output a single integer on one line, representing the number of "one-hundredth of a second" between the two moments.

Sample Input and Output

Sample Input #1

01:02:34.56 01:03:00.10

Sample Output #1

2554

Sample Input #2

00:00:00.00 23:59:59.99

Sample Output #2

8639999

Notes

For $100\%$ of the data, both moments are from the same day in a 24-hour format ($00:00:00.00$ to $23:59:59.99$), and the second moment is guaranteed to be later than the first moment.

This problem originally had a full score of $15\text{pts}$.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
01:02:34.56 01:03:00.10
样例输出
2554