結果

問題 No.525 二度寝の季節
ユーザー ksomemo
提出日時 2017-09-25 01:55:41
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 1,000 ms
コード長 265 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-14 07:37:07
合計ジャッジ時間 2,437 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    T = input()
    h, m = map(int, T.split(":"))
    m_plus5 = m + 5
    new_h = (h + m_plus5 // 60) % 24
    new_m = m_plus5 % 60
    print("{0}:{1:02d}".format(
        str(new_h).zfill(2),
        new_m)
    )

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