結果

問題 No.70 睡眠の重要性!
ユーザー notsix4notsix4
提出日時 2021-11-24 20:56:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 7,852 KB
最終ジャッジ日時 2023-09-09 13:51:15
合計ジャッジ時間 840 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 16 ms
7,740 KB
testcase_02 AC 15 ms
7,768 KB
testcase_03 AC 16 ms
7,852 KB
testcase_04 AC 16 ms
7,832 KB
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=0
for i in range(n):
    s=input().split()
    w=s[0].split(":")
    g=s[1].split(":")
    wh=int(w[0])
    wm=int(w[1])
    gh=int(g[0])
    gm=int(g[1])
    if wh>gh:
        gh=gh+24
    a+=gh*60+gm-wh*60-wm
print(a)
    
0