結果

問題 No.525 二度寝の季節
ユーザー nanae
提出日時 2017-06-09 22:49:39
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 318 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-22 15:40:02
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def solve():
    t = input()
    m = (timetomin(t) + 5) % (24 * 60)
    ans = mintotime(m)
    print(ans)

def timetomin(t):
    h, m = map(int, t.split(':'))
    return (h * 60 + m)

def mintotime(m):
    res = '{:02d}:{:02d}'.format(m // 60, m % 60)
    return res

if __name__ == '__main__':
    solve()
0