結果

問題 No.185 和風
ユーザー roiti46roiti46
提出日時 2015-04-20 00:56:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 1,000 ms
コード長 173 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 6,640 KB
実行使用メモリ 6,156 KB
最終ジャッジ日時 2023-09-17 22:25:43
合計ジャッジ時間 693 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
5,976 KB
testcase_01 AC 15 ms
6,132 KB
testcase_02 AC 14 ms
6,024 KB
testcase_03 AC 14 ms
6,156 KB
testcase_04 AC 15 ms
6,128 KB
testcase_05 AC 12 ms
6,100 KB
testcase_06 AC 14 ms
6,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(raw_input())
a = [map(int, raw_input().split()) for i in xrange(N)]
a = list(set([c-b for b,c in a]))
if len(a) == 1 and a[0] > 0:
    print a[0]
else:
    print -1
0