Maintaining a Sequence
View as PDFWelcome to the contest! This task will prepare you for the other tasks in this contest. For this task, please print out whether there are duplicate elements in the array .
Input Specification
The first line will contain the integer
.
The second line will contain integers,
, the elements of the array.
Output Specification
Print YES, if there are duplicate elements, and NO otherwise.
Sample Input 1
5
1 3 9 2 0
Sample Output 1
NO
Sample Input 2
4
1 2 3 2
Sample Output 2
YES
Comments