結果

問題 No.70 睡眠の重要性!
ユーザー wata_pythonwata_python
提出日時 2019-08-17 23:02:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 11,752 KB
実行使用メモリ 10,092 KB
最終ジャッジ日時 2023-10-26 00:16:35
合計ジャッジ時間 1,057 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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-H
    if time < 0:
        time = 24 + time
    time = time * 60 + (m - M)
    sum+=time
    time = 0
print(sum)
0