結果

問題 No.70 睡眠の重要性!
ユーザー shamioshamio
提出日時 2020-06-01 20:07:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 201 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-08-14 11:10:39
合計ジャッジ時間 962 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,840 KB
testcase_01 AC 14 ms
7,800 KB
testcase_02 AC 13 ms
7,804 KB
testcase_03 AC 13 ms
7,800 KB
testcase_04 AC 14 ms
7,900 KB
testcase_05 AC 14 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())


def f(hm):
    h, m = map(int, hm.split(":"))
    return 60 * h + m


ans = 0
for _ in range(n):
    hm1, hm2 = input().split()
    ans += (f(hm2) - f(hm1)) % (24 *  60)

print(ans)
0