#7016. 在线征集标题
在线征集标题
题目描述
有一个正整数集合,集合中的数各不相同,其中有多少个数,恰好等于集合中另外两个(不同的)数之和?
输入格式
第一行一个整数n。表示整数个数。 3≤n≤100
第二行有 n 个正整数 。 正整数大小不超过 10,000 。
输出格式
答案
样例
输入1
4
1 2 3 4
输出1
2
Related
In following contests:
有一个正整数集合,集合中的数各不相同,其中有多少个数,恰好等于集合中另外两个(不同的)数之和?
第一行一个整数n。表示整数个数。 3≤n≤100
第二行有 n 个正整数 。 正整数大小不超过 10,000 。
答案
4
1 2 3 4
2
In following contests:
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.