結果
問題 |
No.185 和風
|
ユーザー |
|
提出日時 | 2022-02-09 22:56:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 62 ms / 1,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 82,640 KB |
実行使用メモリ | 63,744 KB |
最終ジャッジ日時 | 2024-06-25 03:16:51 |
合計ジャッジ時間 | 1,206 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
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)