結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-27 16:40:54 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 228 bytes |
| 記録 | |
| コンパイル時間 | 61 ms |
| コンパイル使用メモリ | 81,264 KB |
| 実行使用メモリ | 64,236 KB |
| 最終ジャッジ日時 | 2026-09-20 20:41:59 |
| 合計ジャッジ時間 | 1,536 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 2 |
ソースコード
N = int(input())
x, y = map(int, input().split())
ans = y - x
for i in range(N - 1):
x, y = map(int, input().split())
if y - x != ans:
print(-1)
exit()
print(ans)