結果

問題 No.70 睡眠の重要性!
ユーザー first_vilfirst_vil
提出日時 2020-07-31 10:28:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 162 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-20 01:59:49
合計ジャッジ時間 729 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=0
for _ in range(n):
    h1,m1,h2,m2=input().replace(':',' ').split()
    a=h2*60+m2-h1*60-m1
    if a<0:
        a+=3600
    ans+=a
print(ans)
0