結果
| 問題 | No.3084 Identify f(x) | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-04-15 20:53:07 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 142 bytes | 
| コンパイル時間 | 175 ms | 
| コンパイル使用メモリ | 82,588 KB | 
| 実行使用メモリ | 85,492 KB | 
| 最終ジャッジ日時 | 2025-04-15 20:55:01 | 
| 合計ジャッジ時間 | 6,697 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | TLE * 1 -- * 6 | 
ソースコード
n, *rest = map(int, open(0).read().split())
a = rest[:n]
a.sort()
total = 0
for i in range(1, n):
    total += abs(a[i] - a[i-1])
print(total)
            
            
            
        