結果

問題 No.70 睡眠の重要性!
ユーザー k0825k0825
提出日時 2019-03-10 16:09:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 7,820 KB
最終ジャッジ日時 2023-09-05 19:55:42
合計ジャッジ時間 721 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

def ji(h):
	hour, min = [int(x.strip()) for x in h.split(':')]
	min = hour*60 + min
	return min-720 if min>720 else 0 if min==0 else min+720

ans=0
for _ in '1'*int(input()):
	a,b = input().split()
	ans += (ji(b)-ji(a)+1440)%1440
print(ans)
0