結果
| 問題 | No.70 睡眠の重要性! | 
| コンテスト | |
| ユーザー |  turner18_jp | 
| 提出日時 | 2017-12-15 00:47:25 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 408 bytes | 
| コンパイル時間 | 192 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-12-14 13:51:18 | 
| 合計ジャッジ時間 | 920 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 WA * 1 | 
ソースコード
n = int(input())
total = 0
for i in range(n):
  s, w = input().split()
  s_h, s_m= s.split(':')
  w_h, w_m= w.split(':') 
  if len(s_h) == 2 and len(w_h) <= 1:
    w_all = int(w_h) * 60 + 1440 + int(w_m)
    s_all = int(s_h) * 60 + int(s_m)
  elif len(s_h) <= 1 and len(w_h) <= 1:
    w_all = int(w_h) * 60 + 1440 + int(w_m)
    s_all = int(s_h) * 60 + 1440 + int(s_m)
  total += w_all - s_all
print(total)
            
            
            
        