結果
問題 |
No.185 和風
|
ユーザー |
![]() |
提出日時 | 2019-03-30 16:43:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 1,000 ms |
コード長 | 343 bytes |
コンパイル時間 | 220 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-15 19:29:45 |
合計ジャッジ時間 | 1,191 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
# -*- coding: utf-8 -*- n = int(input()) x = [0] * n y = [0] * n for i in range(n): temp = list(map(int,input().split())) x[i] = temp[0] y[i] = temp[1] ans = y[0] - x[0] if ans > 0: for i in range(n): if y[i] - x[i] != ans: print("-1") break else: print(ans) else: print("-1")