結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
brthyyjp
|
| 提出日時 | 2020-10-21 13:01:13 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 1,000 ms |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 602 ms |
| コンパイル使用メモリ | 84,820 KB |
| 実行使用メモリ | 63,352 KB |
| 最終ジャッジ日時 | 2026-04-03 04:05:58 |
| 合計ジャッジ時間 | 1,124 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
| 純コード判定待ち |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
n = int(input())
s = set()
for i in range(n):
x, y = map(int, input().split())
s.add(y-x)
s = list(s)
if len(s) == 1 and s[0] > 0:
print(s[0])
else:
print(-1)
brthyyjp