結果

問題 No.70 睡眠の重要性!
ユーザー gigurururu
提出日時 2014-11-19 16:40:11
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2025-01-02 19:19:34
合計ジャッジ時間 785 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

from datetime import datetime,timedelta
t=timedelta()
for _ in range(input()):
    s,e=[datetime.strptime(str,"%H:%M") for str in raw_input().split()]
    if e<s: s-=timedelta(1)
    t+=e-s
print int(t.total_seconds()/60)
0