結果
問題 |
No.185 和風
|
ユーザー |
![]() |
提出日時 | 2015-08-20 12:04:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 310 bytes |
コンパイル時間 | 113 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-18 10:50:07 |
合計ジャッジ時間 | 782 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 WA * 1 |
ソースコード
# -*- 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)