結果

問題 No.185 和風
ユーザー convexineqconvexineq
提出日時 2020-12-15 21:09:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 144 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 81,712 KB
実行使用メモリ 63,064 KB
最終ジャッジ日時 2023-10-20 06:40:43
合計ジャッジ時間 1,388 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
53,336 KB
testcase_01 AC 54 ms
62,956 KB
testcase_02 AC 55 ms
60,908 KB
testcase_03 AC 53 ms
61,016 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 54 ms
62,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
r = [0]*n
for i in range(n):
    a,b = map(int,input().split())
    r[i] = b-a
print(r[0] if all(r[0]==ri for ri in r) else -1)
0