結果

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

テストケース

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

ソースコード

diff #

N = int(input())

L = []
for _ in range(N):
    x, y = map(int, input().split())
    if y - x >= 0:
        L += [y - x]
    else:
        L += ['0']

L = list(set(L))

print([-1, *L][len(L) == 1])
0