結果
| 問題 | No.185 和風 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-22 23:05:01 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 41 ms / 1,000 ms |
| + 897µs | |
| コード長 | 223 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 64,584 KB |
| 実行使用メモリ | 57,516 KB |
| 最終ジャッジ日時 | 2026-11-12 14:38:03 |
| 合計ジャッジ時間 | 1,923 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
N = int(input())
x, y = map(int, input().split())
ans = y - x
if ans <= 0:
print(-1)
exit()
for i in range(1, N):
x, y = map(int, input().split())
if ans != y - x:
print(-1)
exit()
print(ans)