結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-07-15 09:37:08 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 24 ms / 5,000 ms |
| + 121µs | |
| コード長 | 269 bytes |
| 記録 | |
| コンパイル時間 | 734 ms |
| コンパイル使用メモリ | 80,656 KB |
| 実行使用メモリ | 56,224 KB |
| 最終ジャッジ日時 | 2026-10-11 13:27:56 |
| 合計ジャッジ時間 | 1,122 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
N = int(input())
def f(s: str) -> int:
h, m = map(int, s.split(':'))
return h * 60 + m
ans = 0
for _ in range(N):
s, t = input().split()
a = f(s)
b = f(t)
if a < b:
ans += b - a
else:
ans += (24 * 60 - a) + b
print(ans)
norioc