結果

問題 No.70 睡眠の重要性!
ユーザー hiro1729
提出日時 2023-08-30 07:00:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-31 20:21:14
合計ジャッジ時間 959 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

ans = 0
for _ in range(int(input())):
	s, e = input().split()
	sh, sm = map(int, s.split(':'))
	eh, em = map(int, e.split(':'))
	t = eh * 60 + em - (sh * 60 + sm)
	if t < 0:
		t += 1440
	ans += t
print(ans)
0