結果

問題 No.70 睡眠の重要性!
ユーザー matriematrie
提出日時 2020-11-27 09:23:07
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 7,872 KB
最終ジャッジ日時 2023-10-01 03:58:29
合計ジャッジ時間 767 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,852 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 16 ms
7,764 KB
testcase_03 AC 15 ms
7,840 KB
testcase_04 AC 16 ms
7,872 KB
testcase_05 AC 16 ms
7,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
t = 0
for i in range(N):
	s = input().split()
	b,e = (x.split(':') for x in s)
	h = (int(e[0])-int(b[0]))%24
	m = int(e[1])-int(b[1])
	t += (h*60 + m)%1440
print(t)
0