結果

問題 No.70 睡眠の重要性!
ユーザー yohei-kuyohei-ku
提出日時 2018-03-28 00:20:26
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 236 ms
コンパイル使用メモリ 7,088 KB
実行使用メモリ 6,228 KB
最終ジャッジ日時 2023-09-07 19:14:25
合計ジャッジ時間 762 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,208 KB
testcase_01 AC 11 ms
5,964 KB
testcase_02 AC 11 ms
6,004 KB
testcase_03 AC 11 ms
5,972 KB
testcase_04 AC 11 ms
6,044 KB
testcase_05 WA -
権限があれば一括ダウンロードができます

ソースコード

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