結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
ondy_candy
|
| 提出日時 | 2016-07-25 03:38:09 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 5,000 ms |
| + 157µs | |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 27,804 KB |
| 最終ジャッジ日時 | 2026-07-25 08:39:56 |
| 合計ジャッジ時間 | 4,085 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
# -*- coding: utf-8 -*-
n = int(input())
x = [int(i) for i in input().split()]
u = list(set(x))
s = sorted(u)
result = 0
if len(s) >= 2:
result = min([s[i+1] - s[i] for i in range(len(s)-1)])
print(result)
ondy_candy