結果
| 問題 | No.70 睡眠の重要性! | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-02-29 21:31:40 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 11 ms / 5,000 ms | 
| コード長 | 407 bytes | 
| コンパイル時間 | 201 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-24 12:53:55 | 
| 合計ジャッジ時間 | 703 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 6 | 
ソースコード
#coding: utf-8 ##yuki_70 def hm(s): if len(s)==5: h=s[0]+s[1] m=s[3]+s[4] elif len(s)==4: if s[1]==':': h='0'+s[0] m=s[2]+s[3] elif s[2]==':': h=s[0]+s[1] m='0'+s[3] elif len(s)==3: h='0'+s[0] m='0'+s[2] return int(h)*60+int(m) #minutes n=int(raw_input()) res=0 for i in xrange(n): t=raw_input().split() et=0 et=hm(t[1])-hm(t[0]) if et<0: et=et+60*24 res+=et print res
