题解 P2141 【珠心算测验】

· · 题解

input()
s = set(map(int, input().split(' ')))
print(len(set(a+b for a in s for b in s if a!=b).intersection(s)))