結果

問題 No.185 和風
ユーザー panapanagdfpanapanagdf
提出日時 2019-09-19 22:53:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,560 KB
実行使用メモリ 8,416 KB
最終ジャッジ日時 2023-09-28 12:41:46
合計ジャッジ時間 819 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a=int(input())
b=[]
for i in range(a):
    b.append(input().split())
c=[]
for i in range(2):
    c.append(int(b[i][1])-int(b[i][0]))
if len(c)==c.count(c[0]):
    print(c[0])
else:
    print("-1")
0