結果

問題 No.185 和風
ユーザー akitsugu777akitsugu777
提出日時 2019-09-24 13:17:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 11,812 KB
実行使用メモリ 10,156 KB
最終ジャッジ日時 2023-10-19 08:52:48
合計ジャッジ時間 969 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = int(input())

L = []
for _ in range(N):
    x, y = map(int, input().split())
    if y - x < 0:
        print(-1)
        break
    else:
        L += [y - x]
        L = list(set(L))
        print([-1, *L][len(L) == 1])
0