結果

問題 No.70 睡眠の重要性!
ユーザー tookunn_1213tookunn_1213
提出日時 2015-04-09 20:07:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 6,488 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2023-09-17 19:05:20
合計ジャッジ時間 612 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,020 KB
testcase_01 AC 12 ms
6,144 KB
testcase_02 AC 11 ms
5,988 KB
testcase_03 AC 11 ms
6,044 KB
testcase_04 AC 11 ms
5,936 KB
testcase_05 AC 11 ms
6,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
timeSum = 0
for i in range(N):
	a = raw_input().replace(':',' ').split()
	sleep = int(a[0])*60+int(a[1])
	up = int(a[2])*60+int(a[3])
	if sleep > up:
		timeSum += ((1440 - sleep) + up)
	else:
		timeSum += (up - sleep)
print timeSum
0