Preparing NOJ

Duplicate Number

1000ms 65536K

Description:

Given a sequence of N numbers, find a number A that the count of A in the sequence is at least two.

Input:

First line: one positive integer N (N <= 1000).
Second line: N positive integers (<= 1000000).

Output:

One integer A.

Sample Input:

8
2 4 2 1 5 3 9 6

Sample Output:

2

Info

NOIOPEN

Provider NOIOPEN

Origin 简单英文题

Code NOIOPJENGLISH19

Tags

Submitted 0

Passed 0

AC Rate 0%

Date 08/15/2021 18:56:23

Related

Nothing Yet