結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-29 21:31:40 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 79 ms / 5,000 ms |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 77,692 KB |
| 最終ジャッジ日時 | 2025-12-03 19:34:30 |
|
ジャッジサーバーID (参考情報) |
judge3 / 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