結果

問題 No.185 和風
ユーザー konabekonabe
提出日時 2018-02-08 17:52:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 1,000 ms
コード長 209 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 11,732 KB
実行使用メモリ 10,240 KB
最終ジャッジ日時 2023-10-24 22:12:39
合計ジャッジ時間 939 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,060 KB
testcase_01 AC 30 ms
10,240 KB
testcase_02 AC 30 ms
10,240 KB
testcase_03 AC 29 ms
10,240 KB
testcase_04 AC 29 ms
10,240 KB
testcase_05 AC 26 ms
10,020 KB
testcase_06 AC 29 ms
10,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
XY = [list(map(int, input().split())) for i in range(N)]

res = -1
tmp = -1
res = [xy[1] - xy[0] for xy in XY]

if res.count(res[0]) == N and res[0] > 0:
    print(res[0])
else:
    print(-1)
0