結果

問題 No.70 睡眠の重要性!
ユーザー machoniumpmachoniump
提出日時 2023-09-21 23:51:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 242 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 10,456 KB
実行使用メモリ 7,944 KB
最終ジャッジ日時 2023-09-21 23:51:08
合計ジャッジ時間 902 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())
ans=0
def solve(a,b):
    H,M=map(int,a.split(":"))
    h,m=map(int,b.split(":"))
    if H>h:
        h+=24
    return 60*(h-H)+m-M
for i in range(n):
    hm=list(map(str,input().split()))
    ans+=solve(hm[0],hm[1])
print(ans)
0