結果

問題 No.70 睡眠の重要性!
ユーザー cande398cande398
提出日時 2018-04-24 21:32:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 26 ms / 5,000 ms
コード長 174 bytes
コンパイル時間 302 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 9,204 KB
最終ジャッジ日時 2023-09-09 23:58:34
合計ジャッジ時間 965 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,204 KB
testcase_01 AC 26 ms
9,124 KB
testcase_02 AC 26 ms
9,036 KB
testcase_03 AC 26 ms
9,088 KB
testcase_04 AC 26 ms
9,044 KB
testcase_05 AC 26 ms
9,136 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re

A = 0
N = int(input())
for i in range(N):
	L = list(map(int, re.split('[ :]', input())))
	S = L[2]*60+L[3] - L[0]*60-L[1]
	if(S < 0):
		S += 1440
	A += S
print(A)
0