結果
問題 | No.70 睡眠の重要性! |
ユーザー |
|
提出日時 | 2023-09-21 23:53:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 25 ms / 5,000 ms |
コード長 | 260 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-07 16:47:23 |
合計ジャッジ時間 | 706 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n=int(input()) ans=0 def solve(a,b): H,M=map(int,a.split(":")) h,m=map(int,b.split(":")) if H>h or (h==H and M>m): 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)