結果

問題 No.70 睡眠の重要性!
ユーザー gigurururugigurururu
提出日時 2014-11-19 16:40:11
言語 Python2
(2.7.18)
結果
AC  
実行時間 16 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 6,632 KB
実行使用メモリ 6,968 KB
最終ジャッジ日時 2023-08-30 21:53:08
合計ジャッジ時間 751 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

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