結果

問題 No.185 和風
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-21 13:01:13
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 91 ms / 1,000 ms
コード長 176 bytes
コンパイル時間 1,659 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 75,524 KB
最終ジャッジ日時 2023-09-28 14:11:29
合計ジャッジ時間 1,721 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,140 KB
testcase_01 AC 89 ms
75,328 KB
testcase_02 AC 91 ms
75,512 KB
testcase_03 AC 88 ms
75,232 KB
testcase_04 AC 90 ms
75,352 KB
testcase_05 AC 75 ms
71,160 KB
testcase_06 AC 86 ms
75,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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