結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
e-mon
|
| 提出日時 | 2015-01-26 11:11:25 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 5,000 ms |
| コード長 | 223 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 24,964 KB |
| 最終ジャッジ日時 | 2025-01-03 03:13:21 |
| 合計ジャッジ時間 | 2,509 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
#!/usr/bin/env python
# -*- coding: utf-8 -*-
N = int(input())
X = sorted(list(set(map(int,input().split()))))
sub = 10**8
for i in range(1,len(X)):
sub = min(sub,abs(X[i] - X[i-1]))
print(sub if sub != 10**8 else 0)
e-mon