結果

問題 No.525 二度寝の季節
ユーザー No-Ra
提出日時 2017-08-14 15:33:16
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 725 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-10-13 09:57:03
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

hour, time = input().split(":")

def solve(hour, time):
    hour = int(hour)
    time = int(time)
    shour = ""
    stime = ""
    time += 5
    if time > 59:
        time -= 60
        hour += 1
        if time < 10:
            stime = "0" + str(time)
        else:
            stime = str(time)
    else:
        if time < 10:
            stime = "0" + str(time)
        else:
            stime = str(time)
    if hour > 23:
        hour -= 24
        if hour < 10:
            shour = "0" + str(hour)
        else:
            shour = str(hour)
    else:
        if hour < 10:
            shour = "0" + str(hour)
        else:
            shour = str(hour)
    return shour + ":" + stime
solve

print(solve(hour, time))
0