結果

問題 No.185 和風
ユーザー OhnumaOhnuma
提出日時 2020-04-08 17:09:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 7,900 KB
最終ジャッジ日時 2023-09-25 21:23:04
合計ジャッジ時間 1,142 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,816 KB
testcase_01 AC 18 ms
7,760 KB
testcase_02 AC 15 ms
7,900 KB
testcase_03 AC 15 ms
7,768 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 18 ms
7,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ret = None
for _ in range(n):
    x,y = map(int,input().split())
    if not ret:
        ret = y - x
    else:
        if y-x==ret:
            continue
        else:
            ret = -1
            break
print(ret)
0