답안 #346022

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
346022 2021-01-09T03:32:51 Z cabbagecabbagecabbage Odašiljači (COCI20_odasiljaci) Python 3
35 / 70
1000 ms 4580 KB
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}')
# 결과 실행 시간 메모리 Grader output
1 Correct 23 ms 4580 KB Output is correct
2 Incorrect 22 ms 3436 KB Output isn't correct
3 Correct 26 ms 3436 KB Output is correct
4 Correct 31 ms 3436 KB Output is correct
5 Correct 41 ms 3436 KB Output is correct
6 Incorrect 445 ms 3692 KB Output isn't correct
7 Correct 458 ms 3572 KB Output is correct
8 Incorrect 973 ms 3616 KB Output isn't correct
9 Execution timed out 1086 ms 3836 KB Time limit exceeded
10 Execution timed out 1089 ms 3948 KB Time limit exceeded