結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
|
提出日時 | 2018-03-26 22:47:44 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 128 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 16,576 KB |
最終ジャッジ日時 | 2024-06-25 12:13:20 |
合計ジャッジ時間 | 1,706 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 22 |
ソースコード
N = input() x = map(int,raw_input().split()) D = list(set(x)) D.sort(reverse=True) print D A=[] if len(D) == 1: print abs(D[0]) else: for i in range(0,len(D)-1): A.append(abs(D[i]-D[i+1])) print min(A)