結果

問題 No.70 睡眠の重要性!
ユーザー bellangeldindonbellangeldindon
提出日時 2017-08-05 16:00:09
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 368 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-20 01:46:43
合計ジャッジ時間 704 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,816 KB
testcase_01 AC 9 ms
6,940 KB
testcase_02 AC 8 ms
6,940 KB
testcase_03 AC 9 ms
6,940 KB
testcase_04 AC 11 ms
6,944 KB
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
ans = 0

for i in range(0, n):
	s = raw_input().split()
	gobed = map(int, s[0].split(':'))
	getup = map(int, s[1].split(':'))
	if getup[0] < gobed[0]:
		getup[0] += 24
	h = getup[0] - gobed[0]
	if getup[1] < gobed[1]:
		h -= 1
		getup[1] += 60
	m = getup[1] - gobed[1]
	ans += h * 60 + m

print ans
0