結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
53,400 KB
testcase_01 AC 58 ms
63,020 KB
testcase_02 AC 56 ms
60,972 KB
testcase_03 AC 56 ms
60,972 KB
testcase_04 AC 55 ms
60,972 KB
testcase_05 AC 41 ms
53,400 KB
testcase_06 AC 57 ms
63,020 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 r[0] > 0 and all(r[0]==ri for ri in r) else -1)
0