結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-04-25 17:47:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 128 ms / 5,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 20,268 KB |
| 最終ジャッジ日時 | 2025-01-03 05:35:20 |
| 合計ジャッジ時間 | 2,612 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
n = int(input())
n_line = sorted(map(int, input().split()))
distance = 10e8
v1 = n_line[0]
for n in n_line[1:]:
if n - v1 != 0 and n - v1 < distance:
distance = n - v1
v1 = n
print(0 if distance == 10e8 else distance)