题目地址:
https://acs.jxnu.edu.cn/problem/NOIOPJENGLISH19
Duplicate Number
复数
描述:
Given a sequence of N numbers, find a number A that the count of A in the sequence is at least two.
给定一个 n 个数列,找出一个数列中 A的计数至少是2。
输入:
First line: one positive integer N (N <= 1000).
Second line: N positive integers (<= 1000000).
第一行:一个正整数N(N <= 1000)。
第二行:N个正整数(<= 1000000)。
输出:
One integer A.
一个整数A。
样例输入:
8 2 4 2 1 5 3 9 6
样例输出:
2