結果

問題 No.70 睡眠の重要性!
ユーザー yurarayurara
提出日時 2019-05-19 03:18:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 11,840 KB
実行使用メモリ 10,168 KB
最終ジャッジ日時 2023-10-17 07:51:43
合計ジャッジ時間 1,004 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())

sum = 0
for _ in range(N):
    st, ed = map(str, input().split(' '))
    stH, stM = map(int, st.split(':'))
    edH, edM = map(int, ed.split(':'))
    sum += ((edH + 23 - stH) if stH > edH else edH - stH - 1) * 60
    sum += edM - stM if stH == edH else 60 - stM + edM
print(sum)
0