結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-10-20 12:56:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 5,000 ms |
| コード長 | 249 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 82,188 KB |
| 実行使用メモリ | 52,156 KB |
| 最終ジャッジ日時 | 2024-09-20 08:25:27 |
| 合計ジャッジ時間 | 1,032 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
n = int(input())
ans = 0
for i in range(n):
a, b = input().split()
h, m = map(int, a.split(":"))
x1 = h * 60 + m
h, m = map(int, b.split(":"))
x2 = h * 60 + m
if x1 > x2:
x2 += 24 * 60
ans += x2 - x1
print(ans)
ohana