結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
Co-3
|
| 提出日時 | 2020-08-22 18:25:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 82,052 KB |
| 実行使用メモリ | 96,800 KB |
| 最終ジャッジ日時 | 2024-10-15 12:05:42 |
| 合計ジャッジ時間 | 12,579 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
Co-3