結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-04-30 14:59:08 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 114 ms / 5,000 ms |
| コード長 | 198 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 77,856 KB |
| 最終ジャッジ日時 | 2025-12-03 14:54:10 |
|
ジャッジサーバーID (参考情報) |
judge4 / 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