Problem3342--【Div3】abc395c-最短重复值子数组

3342: 【Div3】abc395c-最短重复值子数组

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description



Sample Input Copy

5
3 9 5 3 1

Sample Output Copy

4

HINT

-1

Source/Category