第二行包含n個(gè)正整數(shù),表示輸入序列。
對(duì)于30%的數(shù)據(jù),n<=1000;
對(duì)于50%的數(shù)據(jù),n<=30000;
對(duì)于100%的數(shù)據(jù),1 <=n<=100000,1<=ai<=10^9
5 1 2 2 1 2
-1 -2 0 1 1
2016年真題精選
1834,1835,1836,2267,2268,2269,2270,2271,2272,2386
1834,1835,1836,2267,2268,2269,2270,2271,2272,2386
1834,1835,1836,2267,2268,2269,2270,2271,2272,2386
1834,1835,1836,2267,2268,2269,2270,2271,2272,2386