結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-16 11:53:01 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 1,000 ms |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 77,332 KB |
| 最終ジャッジ日時 | 2025-12-03 16:14:41 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
n = input()
s = set()
for i in range(n):
a,b = map(int, raw_input().split())
s.add(b - a)
l = list(s)
if (len(s) == 1 and l[0] >= 1):
print l[0]
else:
print -1
togatoga