結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 14 ms
6,036 KB
testcase_02 AC 15 ms
6,012 KB
testcase_03 AC 16 ms
6,148 KB
testcase_04 WA -
testcase_05 AC 11 ms
6,100 KB
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

0