結果

問題 No.70 睡眠の重要性!
ユーザー Takayuki HirotaTakayuki Hirota
提出日時 2021-02-05 08:29:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 210 bytes
コンパイル時間 723 ms
コンパイル使用メモリ 10,492 KB
実行使用メモリ 7,896 KB
最終ジャッジ日時 2023-09-14 13:54:03
合計ジャッジ時間 923 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())
l=[]
for i in range(n):
	s,w=input().split()
	l+=[[s.split(':'),w.split(':')]]
t=0
for i in l:
	sh,sm=int(i[0][0]),int(i[0][1])
	wh,wm=int(i[1][0]),int(i[1][1])
	t+=(wh-sh)%24*60+(wm-sm)
print(t)
0