赞
踩
代码展示:
N = eval(input())
info = []
for i in range(N):
data = input().split()
info.append(data)
info.sort(key=lambda x:(int(x[1]))**2+(int(x[2]))**2)
champion = info[0]
loser = info[-1]
print(champion[0],loser[0])
测评结果:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。