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