結果

問題 No.185 和風
ユーザー szkakeszkake
提出日時 2015-08-20 11:59:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 545 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 8,876 KB
最終ジャッジ日時 2023-09-25 13:46:56
合計ジャッジ時間 1,295 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
8,616 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 23 ms
8,736 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 = tuple(map(lambda x: x[1] - x[0], l))
    print(l[0] if functools.reduce(lambda x, y: x == y, l) >= 0 else -1)
0