結果

問題 No.70 睡眠の重要性!
ユーザー YCescaYCesca
提出日時 2016-09-09 03:02:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 260 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-04-27 18:23:56
合計ジャッジ時間 802 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
12,544 KB
testcase_01 AC 36 ms
12,540 KB
testcase_02 AC 34 ms
12,536 KB
testcase_03 AC 36 ms
12,416 KB
testcase_04 AC 36 ms
12,536 KB
testcase_05 AC 36 ms
12,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import datetime as dt
n = int(input())
c = []
for i in range(n):
    a, b = map(str, input().split())
    at = dt.strptime(a,"%H:%M")
    bt = dt.strptime(b,"%H:%M")
    c.append((bt-at).seconds) #足し引きすると timedelta
print(sum(c)//60)
0