时间限制:1 Sec
内存限制:32 MiB
提交:79
答案正确:30
Xiao Ming is only seven years old, Now I give him some numbers, and ask him what is the secondlargest sum if he can choose a part of them. For example, if I give him 1 、 2 、 3 , then he should tellme 5 as 6 is the largest and 5 is the second. I think it is too hard for him, isn ’ t it?
Standard input will contain multiple test cases. The first line of the input is a single integer T (1 <= T <=10) which is the number of test cases. And it will be followed by T consecutive test cases.Each test case starts with a line containing an integer N (1<N<10) , the number I give Xiao Ming . Thesecond line contains N Integer numbers ai (-10<ai<10),
For each test case, output the answer.
2 3 1 2 3 4 0 1 2 3
5 5
20100831湖工大校赛