結果
問題 | No.135 とりあえず1次元の問題 |
ユーザー | taba |
提出日時 | 2016-04-13 23:42:08 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 109 ms / 5,000 ms |
コード長 | 152 bytes |
コンパイル時間 | 270 ms |
コンパイル使用メモリ | 6,656 KB |
実行使用メモリ | 16,484 KB |
最終ジャッジ日時 | 2025-01-03 14:32:53 |
合計ジャッジ時間 | 2,007 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 |
ソースコード
n=input() x=sorted(list(set(map(int,raw_input().split())))) if len(x)==1: print 0 exit() y=[] for i in range(len(x)-1): y+=[x[i+1]-x[i]] print min(y)