結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2020-05-24 12:53:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 189 bytes |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,848 KB |
| 最終ジャッジ日時 | 2024-10-11 04:21:59 |
| 合計ジャッジ時間 | 2,352 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 1 |
ソースコード
n=int(input()) x=list(map(int,input().split())) x.sort() ans = 10**12 for i in range(n-1): if x[i+1]-x[i] != 0: ans = min(ans, x[i+1]-x[i]) if ans != 10**12: print(ans) else: print(-1)
shobonvip