結果

問題 No.185 和風
ユーザー pofpof
提出日時 2019-06-23 22:23:57
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 174 bytes
コンパイル時間 889 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 7,884 KB
最終ジャッジ日時 2023-08-28 13:15:59
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,872 KB
testcase_01 AC 18 ms
7,872 KB
testcase_02 AC 19 ms
7,884 KB
testcase_03 AC 19 ms
7,832 KB
testcase_04 AC 18 ms
7,860 KB
testcase_05 AC 15 ms
7,804 KB
testcase_06 AC 18 ms
7,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = set()
for i in range(n):
    x,y = map(int,input().split())
    a.add(y-x)

b = list(a)
if len(b) == 1 and b[0] >0:
    print(b[0])
else:
    print(-1)

0