No.525 Season for Going Back to Sleep
Problem Statement
I woke up, but since it is the season for going back to sleep, I am thinking of sleeping for another 5 minutes.
Given the time of the first wake-up, find the time 5 minutes later.
Input
T
$T$ is given in the format $hh:mm$.
It satisfies $0 \le hh \le 23$, and values with $0 \le hh \le 9$ are written with two digits by prepending a $0$.
It satisfies $0 \le mm \le 59$, and values with $0 \le mm \le 9$ are written with two digits by prepending a $0$.
Therefore, $00:00 \le T \le 23:59$ holds.
There is a newline at the end of the input file.
Output
Output the time $5$ minutes after $T$ in the format $hh:mm$. Print a newline at the end.
Sample
Sample 1
Input
08:10
Output
08:15
Display both hours and minutes in two digits, padded with zeros.
Sample 2
Input
23:59
Output
00:04
Going back to sleep may carry over into the next day.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
matsu7874