結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-17 02:01:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 204 bytes |
| コンパイル時間 | 70 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 22,960 KB |
| 最終ジャッジ日時 | 2024-07-04 02:47:58 |
| 合計ジャッジ時間 | 1,880 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 11 RE * 11 |
ソースコード
N = int(input())
X = sorted(set([int(i) for i in input().split()]))
if len(X) == 1:
print(0)
exit()
inf = 10**9
ans = inf
for i in range(N - 1):
ans = min(ans, X[i + 1] - X[i])
print(ans)