結果

問題 No.70 睡眠の重要性!
ユーザー k0825k0825
提出日時 2019-03-10 15:44:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-09-05 19:55:34
合計ジャッジ時間 688 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

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