結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
c-yan
|
| 提出日時 | 2020-07-18 00:42:27 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 149 ms / 5,000 ms |
| コード長 | 209 bytes |
| 記録 | |
| コンパイル時間 | 660 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 27,892 KB |
| 最終ジャッジ日時 | 2026-05-23 23:19:07 |
| 合計ジャッジ時間 | 4,495 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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