結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-07-18 00:42:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 127 ms / 5,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 209 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 23,100 KB |
| 最終ジャッジ日時 | 2024-11-30 07:12:32 |
| 合計ジャッジ時間 | 2,025 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
N, *X = map(int, open(0).read().split())
X = sorted(set(X))
if len(X) == 1:
print(0)
exit()
result = float('inf')
for i in range(len(X) - 1):
result = min(result, X[i + 1] - X[i])
print(result)
c-yan