-->
当前位置:首页 > 题库 > 正文内容

PROGRAMMING:Xiaowen's psychological shadow moment

Luz3年前 (2021-05-10)题库353
Xiaowen is very punctual. He usually arrives K seconds ahead of time when he makes an appointment with others. If the other person is not on time, he will leave by himself after waiting for K seconds. If this time is called Xiaowen's psychological shadow time, please program the start and end time of Xiaowen's psychological shadow time.
###Input format:
There are multiple sets of input data. First read in an integer n, and then include n lines, each line has a 24-hour system of time, minutes and seconds and K seconds
###Output format:
Output the start time and end time of psychological shadow time (if it is greater than or equal to 24:00:00, count from 00:00:00; if it is less than 00:00:00, count from 23:59:59)
###Input example:
```in
one
12 10 30 40
```
###Output example:
```out
12:09:50 12:11:10
```







answer:If there is no answer, please comment

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。