結果

問題 No.185 和風
ユーザー yukirin
提出日時 2015-04-24 20:48:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 195 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-07-05 01:09:25
合計ジャッジ時間 742 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

num_list = [[int(a) for a in input().split() for i in range(n)]]
diff = set(b - a for a, b in num_list)

ans = diff.pop()
if diff or ans < 0:    print("-1")
else:
    print(ans)
0