結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-05 12:54:12 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 153µs | |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-11 12:37:17 |
| 合計ジャッジ時間 | 1,157 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 |
ソースコード
# coding: utf-8
n = int(input())
count = 0
for i in range(n):
l = [list(map(int,i.split(":"))) for i in input().split(" ")]
h,m = l[0]
s = h*60 + m
h_,m_ = l[1]
s_ = h_*60 + m_
if s_ < s:
count += (24*60 - (s - s_))
else:
count+= (s_ - s)
print(count)