結果
| 問題 | 
                            No.716 距離
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-08-25 21:49:45 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 318 bytes | 
| コンパイル時間 | 72 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-06-26 22:05:32 | 
| 合計ジャッジ時間 | 2,625 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 1 WA * 39 | 
ソースコード
N = int(input())
line = input().split()
line = sorted(line)
df_old = 1000000
#print(line)
for i in range(N -1):
    df_new = int(line[i + 1]) - int(line[i])
    #print(abs(df_new), abs(df_old))
    if abs(df_new) < abs(df_old):
        df_old = df_new
        
print(abs(int(line[0]) - int(line[N - 1])))
print(df_old)