結果

問題 No.185 和風
ユーザー notsix4notsix4
提出日時 2021-11-30 15:45:08
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 169 bytes
コンパイル時間 957 ms
コンパイル使用メモリ 10,420 KB
実行使用メモリ 7,916 KB
最終ジャッジ日時 2023-09-16 10:00:52
合計ジャッジ時間 1,369 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,916 KB
testcase_01 AC 19 ms
7,880 KB
testcase_02 AC 19 ms
7,764 KB
testcase_03 AC 19 ms
7,880 KB
testcase_04 AC 19 ms
7,876 KB
testcase_05 AC 16 ms
7,824 KB
testcase_06 AC 18 ms
7,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
l=[]
for i in range(n):
    a,b=map(int,input().split())
    l.append(b-a)
nl=list(set(l))
if len(nl)==1 and nl[0]>0:
    print(nl[0])
else:
    print(-1)
0