結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
Nachia
|
| 提出日時 | 2021-05-04 18:03:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 146 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 25,536 KB |
| 最終ジャッジ日時 | 2024-07-23 13:18:27 |
| 合計ジャッジ時間 | 2,064 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 1 WA * 21 |
ソースコード
N = int(input())
X = list(set(map(int,input().split())))
A = 10**9
for a,b in zip(X[:-1],X[1:]):
A = min(A,b-a)
if len(X) <= 1: A = 0
print(A)
Nachia