ccf之称检测点查询
程序员文章站
2024-03-17 21:26:28
...
ccf202009-1 称检测点查询
if __name__ == "__main__":
s = list(map(int,input().split()))
n = s[0]
x = s[1]
y = s[2]
result = {}
for i in range(1,n+1):
cur = list(map(int,input().split()))
x_1 = cur[0]
y_1 = cur[1]
count = pow((x-x_1),2)+pow((y-y_1),2)
result[i]=count
result = sorted(result.items(),key = lambda x:x[1])
for i in range(3):
print(result[i][0])
上一篇: Django安装爬坑