Radio 106 FM
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
You are given a list of songs that played on Radio 106 FM. The list contains a total of songs. Find the length of the longest fragment of the list that consists of non-repeating songs.
Input
The first line contains the number of songs in the list. The second line contains integers , which are the identification numbers of the songs.
Output
Print the length of the longest fragment of the list that consists of unique songs.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 2K
Acceptance rate 27%