欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ccf之称检测点查询

程序员文章站 2024-03-17 21:26:28
...

ccf202009-1 称检测点查询

ccf之称检测点查询
ccf之称检测点查询
ccf之称检测点查询

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])
    

相关标签: CCF python ccf