問題一覧 > 通常問題

No.525 Season for Going Back to Sleep

レベル : / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 611
作問者 : matsu7874 / テスター : Nafmo2
お気に入りにしたユーザー ProblemId : 1378 / 自分の提出
問題文最終更新日: 2026-06-25 10:48:14
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 166 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。