-->
当前位置:首页 > 题库

PROGRAMMING:A+B Again

Luz5年前 (2021-05-10)题库663
Your task is to Calculate $$A+B$$. But this time, both $$A$$ and $$B$$ represents a time. For instance, if we define $$A$$ as `12 12 12`, indicating twelve hours twelve minutes and twelve seconds.
### Input Specification:
There are multiple test cases. The first line of the input is an integer $$T$$ (1 ≤ $$T$$ ≤ 200), indicating the number of test cases. Then $$T$$ test cases follow.
For each case, each line consists of six integers $$a_ 1, a_ 2, a_ 3$$ and $$b_ 1, b_ 2, b_ 3$$, separated by a space. The first three integers indicate time $$A$$, and the last three integers indicate time $$B$$.
### Output Specification:
For each test case, output one line containing three integers, indicating $$A+B$$. Each output consists of three parts, hour, minute and second. And it should be obey the regulations of time, it means that the number of minute or second should not exceed 60. You should output the sum of $$A$$ and $$B$$ in one line.
### Sample Input:
```in
two
1 2 3 4 5 6
34 45 56 12 23 34
```
### Sample Output:
```out
5 7 9
47 9 30
```







answer:If there is no answer, please comment