結果

問題 No.185 和風
ユーザー szkake
提出日時 2015-08-20 11:59:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 292 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-07-18 10:49:58
合計ジャッジ時間 860 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

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