結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2022-01-04 03:45:33 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 25,560 KB |
| 最終ジャッジ日時 | 2026-09-15 21:30:23 |
| 合計ジャッジ時間 | 17,021 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 21 |
ソースコード
input()
a = set(map(int,input().split()))
if len(a)<2:
print(0)
else:
ans = max(a)
for _ in range(len(a)):
if a:
i = a.pop()
for j in a:
if abs(i-j)<ans:
ans = abs(i-j)
print(ans)
Schnee