結果

問題 No.70 睡眠の重要性!
ユーザー OhnumaOhnuma
提出日時 2020-04-08 18:00:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 241 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-26 02:36:00
合計ジャッジ時間 1,050 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(input())
ret = 0
for _ in range(n):
    line = list(input().split())
    h1,m1 = map(int, line[0].split(':'))
    h2,m2 = map(int, line[1].split(':'))
    s = h2*60+m2 - h1*60-m1
    if s<0:
        s += 24*60
    ret += s
print(ret)
0