結果

問題 No.185 和風
ユーザー shamioshamio
提出日時 2020-06-01 18:53:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 198 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 44,048 KB
最終ジャッジ日時 2024-05-01 21:54:08
合計ジャッジ時間 4,801 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 454 ms
44,048 KB
testcase_01 AC 461 ms
43,792 KB
testcase_02 AC 457 ms
43,920 KB
testcase_03 AC 464 ms
43,660 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 461 ms
43,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

n = int(input())
xy = np.array([list(map(int, input().split())) for _ in range(n)], np.int64)

z = xy[:, 1] - xy[:, 0]

if (z == z[0]).all():
    print(z[0])
else:
    print(-1)
0