数据点1求一下```python n=int(input()) l=[] l=list(map(int,input().split())) l.append(0) l.sort() tou=0 wei=-1 ans=0 if len(l)==2: print(max(l)**2) else: while l[tou]!=l[wei]: ans+=(l[tou]-l[wei])**2 tou+=1 ans += (l[tou] - l[wei]) ** 2 wei-=1 print(ans)