結果

問題 No.70 睡眠の重要性!
ユーザー zakuro9715zakuro9715
提出日時 2015-10-08 15:48:34
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 9,228 KB
最終ジャッジ日時 2023-09-27 08:07:40
合計ジャッジ時間 816 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,020 KB
testcase_01 AC 25 ms
9,088 KB
testcase_02 AC 24 ms
9,136 KB
testcase_03 AC 25 ms
9,228 KB
testcase_04 AC 25 ms
9,064 KB
testcase_05 AC 26 ms
9,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
N = int(input())
a = 0
for i in range(N):
    h1, m1, h2, m2 = map(int, re.split('[ :]', input()))
    d = (h2 * 60 + m2) - (h1 * 60 + m1)
    if d < 0:
        d += 24 * 60
    a += d
print(a)
0