在线征集标题
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
有一个正整数集合,集合中的数各不相同,其中有多少个数,恰好等于集合中另外两个(不同的)数之和?
输入格式
第一行一个整数n。表示整数个数。 3≤n≤100
第二行有 n 个正整数 。 正整数大小不超过 10,000 。
输出格式
答案
样例
输入1
4
1 2 3 4
输出1
2
2025周赛第一场
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 9
- Start at
- 2025-3-9 14:00
- End at
- 2025-3-9 18:00
- Duration
- 4 hour(s)
- Host
- Partic.
- 38