結果

問題 No.70 睡眠の重要性!
ユーザー ゆるくゆるく
提出日時 2014-11-19 00:12:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 277 bytes
コンパイル時間 484 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-08-30 21:46:15
合計ジャッジ時間 1,018 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

n = int(input())
e = [[i for i in input().split()] for i in range(n)]
s = 0
for ee in e:
  a = int(ee[0].split(':')[0])
  b = int(ee[0].split(':')[1])
  c = int(ee[1].split(':')[0])
  d = int(ee[1].split(':')[1])
  s += ((24 + c - a) * 60 + d - b) % (24 * 60)
print(s)
0