結果

問題 No.70 睡眠の重要性!
ユーザー utsumidaisukeutsumidaisuke
提出日時 2018-12-06 12:14:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 262 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-10-12 02:38:54
合計ジャッジ時間 880 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,796 KB
testcase_01 AC 17 ms
7,932 KB
testcase_02 AC 17 ms
7,780 KB
testcase_03 AC 16 ms
7,808 KB
testcase_04 AC 16 ms
7,916 KB
testcase_05 AC 16 ms
7,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

t = 0
for i in range(n):
    inp = list(map(int, input().replace(':', ' ').split()))
    start = inp[0]*60 + inp[1]
    end = inp[2]*60 + inp[3]
    if start <= end:
        t += (end-start)
    else:
        t += (end + 24*60 - start)
print(t)
0