結果

問題 No.185 和風
ユーザー etale.K3etale.K3
提出日時 2020-11-19 00:59:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 159 bytes
コンパイル時間 633 ms
コンパイル使用メモリ 10,456 KB
実行使用メモリ 7,920 KB
最終ジャッジ日時 2023-09-30 15:24:06
合計ジャッジ時間 1,187 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,724 KB
testcase_01 AC 19 ms
7,872 KB
testcase_02 AC 18 ms
7,820 KB
testcase_03 AC 18 ms
7,800 KB
testcase_04 AC 18 ms
7,780 KB
testcase_05 AC 16 ms
7,920 KB
testcase_06 AC 18 ms
7,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

S = []

for i in range(N):
    X,Y = map(int,input().split())
    S.append(Y - X)

print(S[0] if len(list(set(S))) == 1 and S[0] > 0 else -1)
0