結果
| 問題 | No.70 睡眠の重要性! | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-09-21 23:51:06 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 242 bytes | 
| コンパイル時間 | 199 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-07-07 16:45:45 | 
| 合計ジャッジ時間 | 924 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 WA * 1 | 
ソースコード
n=int(input())
ans=0
def solve(a,b):
    H,M=map(int,a.split(":"))
    h,m=map(int,b.split(":"))
    if H>h:
        h+=24
    return 60*(h-H)+m-M
for i in range(n):
    hm=list(map(str,input().split()))
    ans+=solve(hm[0],hm[1])
print(ans)
            
            
            
        