Created
June 11, 2022 14:42
-
-
Save kunishi/03436db20c60d033cde242c8c8e31e98 to your computer and use it in GitHub Desktop.
AtCoder ABC255 Problem B
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N, K = map(int, input().split()) | |
A = list(map(int, input().split())) | |
P = [[0, 0]] | |
for i in range(N): | |
P.append(list(map(int, input().split()))) | |
distance = [] | |
for i in range(1, N + 1): | |
d = [] | |
for j in A: | |
d.append((P[i][0] - P[j][0]) ** 2 + (P[i][1] - P[j][1]) ** 2) | |
distance.append(min(d)) | |
print(max(distance) ** 0.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment