結果
| 問題 | 
                            No.135 とりあえず1次元の問題
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-05-30 20:24:18 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 323 bytes | 
| コンパイル時間 | 144 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 34,600 KB | 
| 最終ジャッジ日時 | 2024-09-17 16:09:05 | 
| 合計ジャッジ時間 | 12,497 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge6 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | -- * 2 | 
| other | TLE * 1 -- * 21 | 
ソースコード
N: int = int(input())
X = list(map(int, input().split()))
distance = 0
for i in range(len(X)):
    for j in range(len(X)):
        ij_distance = abs(X[i] - X[j])
        if ij_distance == 0:
            continue
        if distance == 0 or ij_distance < distance:
            distance = ij_distance
print(str(distance))