結果

問題 No.185 和風
ユーザー szkakeszkake
提出日時 2015-08-20 12:04:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 796 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 8,888 KB
最終ジャッジ日時 2023-09-25 13:47:07
合計ジャッジ時間 848 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,648 KB
testcase_01 AC 23 ms
8,868 KB
testcase_02 AC 24 ms
8,756 KB
testcase_03 AC 24 ms
8,764 KB
testcase_04 AC 23 ms
8,764 KB
testcase_05 AC 20 ms
8,656 KB
testcase_06 WA -
権限があれば一括ダウンロードができます

ソースコード

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 = tuple(map(lambda x: x[1] - x[0], l))
    e = functools.reduce(lambda x, y: x == y, l)
    print(l[0] if e and l[0] > 0 else -1)
0