結果

問題 No.70 睡眠の重要性!
ユーザー kaminomisosirukaminomisosiru
提出日時 2018-02-05 12:54:12
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 7,892 KB
最終ジャッジ日時 2023-09-21 10:39:39
合計ジャッジ時間 1,158 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

# coding: utf-8
n = int(input())

count = 0
for i in range(n):
    l = [list(map(int,i.split(":"))) for i in input().split(" ")]
    h,m = l[0]
    s = h*60 + m
    h_,m_  = l[1]
    s_ = h_*60 + m_
    if s_ < s:
        count += (24*60 - (s - s_))
    else:
        count+= (s_ - s)
print(count)
0