結果

問題 No.185 和風
ユーザー pypypymipypypymi
提出日時 2022-02-09 22:56:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 1,000 ms
コード長 207 bytes
コンパイル時間 1,409 ms
コンパイル使用メモリ 86,460 KB
実行使用メモリ 75,944 KB
最終ジャッジ日時 2023-09-07 08:57:43
合計ジャッジ時間 2,517 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
70,940 KB
testcase_01 AC 77 ms
75,852 KB
testcase_02 AC 75 ms
75,944 KB
testcase_03 AC 75 ms
75,764 KB
testcase_04 AC 73 ms
75,656 KB
testcase_05 AC 62 ms
71,132 KB
testcase_06 AC 76 ms
75,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
array = [list(map(int,input().split())) for i in range(n)]
array_sub = list(set([j-i for i,j in array]))
if len(array_sub)==1 and array_sub[0]>0:
    print(array_sub[0])
else:
    print(-1)
0