結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
|
提出日時 | 2020-06-01 19:08:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,716 KB |
最終ジャッジ日時 | 2024-11-22 05:21:58 |
合計ジャッジ時間 | 2,774 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 11 WA * 11 |
ソースコード
n = int(input()) x = list(map(int, input().split())) INF = 10 ** 9 x.sort() ans = INF for e1, e2 in zip(x, x[1:]): ans = min(ans, e2 - e1) if ans == INF: ans = -1 print(ans)