結果
| 問題 | No.70 睡眠の重要性! | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-02-20 19:08:32 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 31 ms / 5,000 ms | 
| コード長 | 213 bytes | 
| コンパイル時間 | 90 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-21 07:04:00 | 
| 合計ジャッジ時間 | 878 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
ソースコード
def T(s):
  h,m=map(int,s.split(':'))
  return h*60+m
  
m=0
H=lambda s:s.split(':')[0]
M=lambda s:s.split(':')[1]
for i in '.'*int(input()):
  s,e=input().split()
  a,b=T(s),T(e)
  b+=(a>b)*1440
  m+=b-a
print(m)
            
            
            
        