結果

問題 No.70 睡眠の重要性!
ユーザー vorg101vorg101
提出日時 2016-08-05 09:36:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 242 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,796 KB
実行使用メモリ 7,924 KB
最終ジャッジ日時 2023-08-06 21:04:43
合計ジャッジ時間 777 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

def to_min(hhmm: str) -> int:
    h, m = map(int, hhmm.split(':'))
    return h * 60 + m


N = int(input())
ans = 0

for i in range(N):
    b, w = map(to_min, input().split(' '))
    if b > w:
        b -= 24 * 60
    ans += w - b

print(ans)
0