結果

問題 No.70 睡眠の重要性!
コンテスト
ユーザー kaminomisosiru
提出日時 2018-02-05 12:54:12
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 21 ms / 5,000 ms
+ 153µs
コード長 297 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 56 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2026-10-11 12:37:17
合計ジャッジ時間 1,157 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# 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