結果

問題 No.652 E869120 and TimeZone
ユーザー GrayCoderGrayCoder
提出日時 2018-02-23 23:39:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 248 bytes
コンパイル時間 1,011 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 9,908 KB
最終ジャッジ日時 2023-09-02 05:23:39
合計ジャッジ時間 2,807 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,876 KB
testcase_01 AC 27 ms
9,696 KB
testcase_02 AC 28 ms
9,748 KB
testcase_03 AC 27 ms
9,748 KB
testcase_04 AC 28 ms
9,860 KB
testcase_05 AC 28 ms
9,832 KB
testcase_06 AC 28 ms
9,752 KB
testcase_07 AC 28 ms
9,684 KB
testcase_08 AC 28 ms
9,808 KB
testcase_09 AC 28 ms
9,752 KB
testcase_10 AC 29 ms
9,784 KB
testcase_11 AC 27 ms
9,896 KB
testcase_12 AC 27 ms
9,812 KB
testcase_13 AC 28 ms
9,748 KB
testcase_14 AC 28 ms
9,832 KB
testcase_15 AC 29 ms
9,820 KB
testcase_16 AC 27 ms
9,744 KB
testcase_17 AC 28 ms
9,748 KB
testcase_18 AC 28 ms
9,816 KB
testcase_19 AC 28 ms
9,848 KB
testcase_20 AC 28 ms
9,812 KB
testcase_21 AC 28 ms
9,688 KB
testcase_22 AC 27 ms
9,848 KB
testcase_23 AC 27 ms
9,844 KB
testcase_24 AC 28 ms
9,708 KB
testcase_25 AC 28 ms
9,684 KB
testcase_26 AC 29 ms
9,876 KB
testcase_27 AC 30 ms
9,696 KB
testcase_28 AC 29 ms
9,696 KB
testcase_29 AC 29 ms
9,696 KB
testcase_30 AC 27 ms
9,876 KB
testcase_31 AC 30 ms
9,828 KB
testcase_32 AC 28 ms
9,908 KB
testcase_33 AC 30 ms
9,752 KB
testcase_34 AC 27 ms
9,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import datetime, timedelta

def main():
    A, B, S = input().split()

    n = (float(S[3:]) - 9) * 60
    T = A + ':' + B
    d = datetime.strptime(T, '%H:%M')
    d = d + timedelta(minutes=n)

    print(d.strftime('%H:%M'))

main()
0