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

PROGRAMMING:Time conversion

Luz5年前 (2021-05-10)题库345
Time is divided into 12 hour system and 24 hour system. We can quickly convert the $$24 $$hour system into $$12 $$hour system. If you add a little time, can you switch quickly
###Input format:
Enter the 24-hour time with the middle: sign (colon of half angle) in one line. For example, $$12:34 $$means $$12 $$point $$34 $$minute. When hours or minutes are less than $$10 $, there is no leading zero, such as $$5:6$$
Represents $$5 $$point zero $$6 $$points. And give an integer $$s $, which indicates the minutes to be added.
$$0<=s<=59$$
###Output format:
Add minutes to one line of output and convert to a time of $$12 $$hours, followed by $$am $$for morning or $$PM $$for afternoon.
$$tips $$: $$24:0 $$should output $$0:0 \ \ am$$
###Input example:
Here is a set of inputs. For example:
```in
23:59 1
```
###Output example:
The corresponding output is given here. For example:
```out
0:0 AM
```







answer:If there is no answer, please comment