結果

問題 No.185 和風
ユーザー szkakeszkake
提出日時 2015-08-20 12:10:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 282 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 8,872 KB
最終ジャッジ日時 2023-09-25 13:47:21
合計ジャッジ時間 805 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,724 KB
testcase_01 AC 22 ms
8,744 KB
testcase_02 AC 23 ms
8,856 KB
testcase_03 AC 22 ms
8,844 KB
testcase_04 AC 22 ms
8,816 KB
testcase_05 AC 20 ms
8,736 KB
testcase_06 AC 23 ms
8,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-
import functools

if __name__ == '__main__':
    n = int(input())
    l = []
    for _ in range(n):
        l.append(tuple(map(int, input().split())))
    l = list(map(lambda x: x[1] - x[0], l))
    print(l[0] if len(l) == l.count(l[0]) and l[0] > 0 else -1)
0