結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-09 22:56:48 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 36 ms / 1,000 ms |
| + 760µs | |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 82,168 KB |
| 実行使用メモリ | 66,976 KB |
| 最終ジャッジ日時 | 2026-10-11 08:26:17 |
| 合計ジャッジ時間 | 1,463 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
n = int(input())
array = [list(map(int,input().split())) for i in range(n)]
array_sub = list(set([j-i for i,j in array]))
if len(array_sub)==1 and array_sub[0]>0:
print(array_sub[0])
else:
print(-1)