結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2015-12-20 11:47:00 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 615 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 14,924 KB |
最終ジャッジ日時 | 2025-01-03 10:58:09 |
合計ジャッジ時間 | 8,627 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 RE * 1 TLE * 1 |
ソースコード
N = input() li = map(int, raw_input().split()) #print li li.sort() #print li dist = [] if N <= 1: print 0 else: for i in xrange(N-1): dist.append(li[i+1] - li[i]) #print dist while 0 in dist: dist.remove(0) #print dist print min(dist)