結果
| 問題 |
No.185 和風
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-19 23:40:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 232 bytes |
| コンパイル時間 | 83 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-04 18:40:12 |
| 合計ジャッジ時間 | 723 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 7 |
ソースコード
N = int(input(N))
res = 0
a, b = map(int, input().split())
res = b - a
if res < 1:
print(-1)
exit(0)
for N in range(N-1):
a, b = map(int, input().split())
if res != b - a:
print(-1)
exit(0)
print(res)