Submission #623030

#TimeUsernameProblemLanguageResultExecution timeMemory
62303054skyxenonMobile (BOI12_mobile)Cpython 3
0 / 100
1095 ms79508 KiB
# https://oj.uz/problem/view/BOI12_mobile EPS = 0.00001 n, l = map(int, input().split()) def dist(c1, c2): return ((c1[0] - c2[0]) ** 2 + (c1[1] - c2[1]) ** 2) ** 0.5 coordinates = [] for _ in range(n): x, y = map(int, input().split()) coordinates.append((x, y)) def min_val(origin): return min(dist((origin, 0), coord) for coord in coordinates) def bs(lo, hi): while lo + EPS < hi: mid = (lo + hi) / 2 left = min_val(mid - EPS) right = min_val(mid + EPS) if left > right: hi = mid else: lo = mid return min_val(lo) print(bs(0, l))
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...