結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
Co-3
|
| 提出日時 | 2020-08-22 18:24:56 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,812 KB |
| 最終ジャッジ日時 | 2024-10-15 12:05:26 |
| 合計ジャッジ時間 | 12,618 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 21 |
ソースコード
import math
n = int(input())
xs = list(map(int,input().split()))
ans = 1000000
for i in range(n):
for j in range(n):
y = math.sqrt((xs[i]-xs[j])**2)
if y == 0:
continue
elif ans >= y:
ans = y
print(ans)
Co-3