結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
nisshimo
|
| 提出日時 | 2019-01-18 23:48:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,584 KB |
| 最終ジャッジ日時 | 2024-07-07 04:27:36 |
| 合計ジャッジ時間 | 1,852 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 11 WA * 11 |
ソースコード
n = int(input())
x = [int(i) for i in input().split()]
x.sort()
dist = []
for i in range(n-1):
dist.append(x[i+1]-x[i])
print(min(dist))
nisshimo