| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 346022 | cabbagecabbagecabbage | Odašiljači (COCI20_odasiljaci) | Cpython 3 | 1089 ms | 4580 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
from math import hypot,inf
from decimal import *
getcontext().prec = 20
def dist(x1,y1,x2,y2):
return Decimal(hypot(abs(y2-y1),abs(x2-x1)))
n = int(input())
coors = []
dists = [inf for i in range(n)]
for i in range(n):
x,y = map(int,input().split())
for j in range(i):
d = dist(coors[j][0],coors[j][1],x,y)
dists[i] = min(dists[i],d)
dists[j] = min(dists[j],d)
coors.append((x,y))
print(f'{max(dists)/2:.20f}')
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
