結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-04-30 14:59:08 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 147 ms / 5,000 ms |
| コード長 | 198 bytes |
| コンパイル時間 | 911 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 14,868 KB |
| 最終ジャッジ日時 | 2025-01-03 05:36:26 |
| 合計ジャッジ時間 | 2,166 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
N=int(raw_input())
X=map(int,raw_input().split())
X.sort()
ans=10000000
for i in range(N-1):
if X[i]!=X[i+1]:
ans=min(ans,X[i+1]-X[i])
if ans==10000000:
print 0
else:
print ans
yaoshimax