Given a sequence A1,A2,⋯,An. As for a subsequence Ab1,Ab2,⋯,Abm(1≤b1 Input The first line contains one integer n(2≤n≤105), denoting the length of given sequence. The second line contains nn integers A1,A2,⋯,An(1≤Ai≤100), denoting the given sequence. Output Output one line containing only one integer, denoting the answer. Example input output Note One possible magical subsequence of length 6 is {A1=3,A5=5,A7=2,A8=6,A9=5,A10=3}. Here 3+5=2+6=5+3=83+5=2+6=5+3=8. 题意:尽可能选出n对数,使得每对数和相同,第 i 组最小下标要大于第 i-1 组的最大下标,求集合的长度,其实也就是组数x2。可以注意到Ai值是在1~100,这是关键点,因此对数和最小2,最大200。然后我们可以遍历【2~200】,得出答案 ,因为n>=2,最少一组,不存在0组。6