OpenJudge - 19:Duplicate Number
19:Duplicate Number
总时间限制:
1000ms
内存限制:
65536kB
描述
Given a sequence of N numbers, find a number A that the count of A in the sequence is at least two.
给出N个数,找出一个数A,A在序列中至少出现两次。
输入
First line: one positive integer N (N <= 1000).
第一行:一个正整数N(N<=1000)。
Second line: N positive integers (<= 1000000).
第二行:N个正整数。
输出
One integer A.
一个整数A。
样例输入
8 2 4 2 1 5 3 9 6
样例输出
2