100.0% (44/44)

43.5% (67/154)

# Description

Alan is a student. He likes to play PC games.
One day, Alan's mother talked to him "Do not play so many video games."
He wants to count how much time he spends on video games.

Hint: The gaming interval may across midnight.

# Input Format

The first line contains three integers $h_{st},\ m_{st},\ s_{st}\ (0\leq h_{st}<24,\ 0\leq m_{st},\ s_{st}<60)$, representing that Alan starts to play the game.
The second line contains three integers $h_{ed},\ m_{ed},\ s_{ed}\ (0\leq h_{ed}<24,\ 0\leq m_{ed},\ s_{ed}<60)$, representing the time that Alan closes the game.

# Output Format

One line contains three integers $h_{tot}\ m_{tot}\ s_{tot}$ － the amount of time that Alan plays the video game.
The three integers must be in the ranges: $0 \leq h_{tot} < 24,\ 0 \leq m_{tot},\ s_{tot} < 60$.
If any of the above integers has less than $2$ digits, fill in the prefix $0$.

22 34 51
03 09 20

04 34 29

# Problem Source

No. Testdata Range Constraints Score
1 0~4 $h_{st}\leq h_{ed}$ and $m_{st}\leq m_{ed}$ and $s_{st}\leq s_{ed}$ 5
2 0~9 The interval won't across midnight 10
3 0~15 No specified restriction 10

# Testdata and Limits

No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1 2 3
1 1000 65536 65536 1 2 3
2 1000 65536 65536 1 2 3
3 1000 65536 65536 1 2 3
4 1000 65536 65536 1 2 3
5 1000 65536 65536 2 3
6 1000 65536 65536 2 3
7 1000 65536 65536 2 3
8 1000 65536 65536 2 3
9 1000 65536 65536 2 3
10 1000 65536 65536 3
11 1000 65536 65536 3
12 1000 65536 65536 3
13 1000 65536 65536 3
14 1000 65536 65536 3
15 1000 65536 65536 3