結果

問題 No.525 二度寝の季節
ユーザー knt3110
提出日時 2018-05-14 00:46:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 277 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-28 10:49:04
合計ジャッジ時間 2,117 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

time=input()
t=time.split(":")
minute=int(t[1])+5
if minute<60:
    t[1]='{0:02d}'.format(minute)
else:
    hour=int(t[0])+1
    if hour<24:
        t[0]='{0:02d}'.format(hour)
    else:
        t[0]='{0:02d}'.format(0)
    t[1]='{0:02d}'.format(minute-60)
print(t[0]+':'+t[1])
0