結果

問題 No.70 睡眠の重要性!
ユーザー MinixMinix
提出日時 2021-08-08 01:17:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 192 bytes
コンパイル時間 129 ms
コンパイル使用メモリ 11,828 KB
実行使用メモリ 10,152 KB
最終ジャッジ日時 2023-10-19 01:10:03
合計ジャッジ時間 1,062 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input());x=0
for _ in range(n):
    a,b=input().split()
    h,m=map(int,a.split(':'));s,t=map(int,b.split(':'))
    c=0;c=(s+24*(s<h)-h)*60+t-m
    x+=c-1440*(c>1440)+1440*(c<0)
print(x)
0