結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-10-20 12:56:41 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 5,000 ms |
| + 11µs | |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 81,740 KB |
| 実行使用メモリ | 55,836 KB |
| 最終ジャッジ日時 | 2026-10-11 13:25:53 |
| 合計ジャッジ時間 | 1,189 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
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