检测点2检测的输出为22,我的是26。
它一共有100个数据
n=input()
i=input()
lst=i.split()
'''lst=set(lst)
lst=list(lst)'''
lst2=[]
a=0
b=len(lst)
result=0
while True:
for item in lst[a:]:
for item2 in lst[a+1:]:
lst2.append(int(item)+int(item2))
a+=1
if a==b:
break
for c in lst2:
if str(c) in lst:
result+=1
print(result)