結果

問題 No.70 睡眠の重要性!
ユーザー togatogatogatoga
提出日時 2015-09-02 09:39:06
言語 Python2
(2.7.18)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 345 bytes
コンパイル時間 813 ms
コンパイル使用メモリ 6,476 KB
実行使用メモリ 6,892 KB
最終ジャッジ日時 2023-09-25 21:53:41
合計ジャッジ時間 1,596 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import datetime
N = input()
res = 0
for i in range(N):
    s,e = raw_input().split()
    st = datetime.datetime.strptime(s, "%H:%M")
    et = datetime.datetime.strptime(e, "%H:%M")
    if (et < st):
        st -= datetime.timedelta(1)
        delta = et - st
    else:
        delta = et -st
    res += delta.total_seconds()
print int(res / 60)
0