結果
問題 | No.70 睡眠の重要性! |
ユーザー |
|
提出日時 | 2024-09-15 08:17:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 5,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-15 08:17:13 |
合計ジャッジ時間 | 997 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
N = int(input()) total = 0 for _ in range(N): HMhm = input().split() H, M = HMhm[0].split(':') h, m = HMhm[1].split(':') h1 = int(H) * 60 + int(M) h2 = int(h) * 60 + int(m) if h1 > h2: h1 = 1440 - h1 total += h1 + h2 else: total += h2 - h1 print(total)