結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-26 01:13:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 211 bytes |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 54,068 KB |
| 最終ジャッジ日時 | 2024-07-23 19:35:56 |
| 合計ジャッジ時間 | 14,482 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 RE * 10 |
ソースコード
import numpy as np N = int(input()) l = list(set(list(map(int, input().split())))) l.sort() if len(l)==1: print(0) elif len(l)==2: print(l[1]-l[0]) else: a = np.array(l) d = a[1:N] - a[0:N-1] print(min(d))