結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-29 21:31:40 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 50 ms / 5,000 ms |
| + 557µs | |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 81,312 KB |
| 実行使用メモリ | 81,152 KB |
| 最終ジャッジ日時 | 2026-07-18 03:37:57 |
| 合計ジャッジ時間 | 1,620 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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