結果
| 問題 |
No.185 和風
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-02 23:43:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-22 08:22:27 |
| 合計ジャッジ時間 | 841 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 3 |
ソースコード
n = int(input())
a,b = map(int,input().split())
if a <= b:
print(-1)
exit()
ans = b-a
for i in range(n-1):
a,b = map(int,input().split())
if b-a != ans:
print(-1)
exit()
print(ans)