結果
| 問題 | No.70 睡眠の重要性! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-05 12:54:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 5,000 ms |
| コード長 | 297 bytes |
| 記録 | |
| コンパイル時間 | 453 ms |
| コンパイル使用メモリ | 20,444 KB |
| 実行使用メモリ | 15,232 KB |
| 最終ジャッジ日時 | 2026-03-28 19:15:40 |
| 合計ジャッジ時間 | 1,480 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
# 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)