結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-29 14:08:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 155 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 25,444 KB |
| 最終ジャッジ日時 | 2024-06-28 21:39:12 |
| 合計ジャッジ時間 | 1,816 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 RE * 1 |
| other | AC * 10 RE * 12 |
ソースコード
n=int(input())
x=sorted(list(set(map(int,input().split()))))
ans=10**6
if n==1:
ans=0
for i in range(n-1):
ans=min(ans,abs(x[i]-x[i+1]))
print(ans)