結果

問題 No.70 睡眠の重要性!
ユーザー yohei-ku
提出日時 2018-03-28 00:20:26
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-25 12:59:40
合計ジャッジ時間 566 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
List,X =[],[]
for i in range(0,N):
    w_split = raw_input().split()
    A,B = w_split[0],w_split[1]
    a,b = A.split(':')
    c,d = B.split(':')
    if int(a) >= int(c):
        x=(24-(int(a)+1))*60+(60-int(b))+int(c)*60+int(d)
    else:
        x=(int(c)-int(a))*60+(int(d)-int(b))
    X.append(x)
print sum(X)
0