結果

問題 No.70 睡眠の重要性!
ユーザー wata_pythonwata_python
提出日時 2019-08-17 23:10:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 11,716 KB
実行使用メモリ 10,056 KB
最終ジャッジ日時 2023-10-26 00:24:25
合計ジャッジ時間 780 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,056 KB
testcase_01 AC 28 ms
10,056 KB
testcase_02 AC 30 ms
10,056 KB
testcase_03 AC 28 ms
10,056 KB
testcase_04 AC 27 ms
10,056 KB
testcase_05 AC 28 ms
10,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
sum = 0
for i in range(n):
    a, b = input().split()
    H, M = map(int, a.split(":"))
    h, m = map(int, b.split(":"))
    time=(h*60+m)-(H*60+M)
    if time < 0:
        time+=24*60
    sum+=time
    time = 0
print(sum)
0