#誤解法(嘘貪欲)チェック I=input for t in [0]*int(I()): N=I() A=sorted(map(int,I().split())) a,b,r=0,1,A[0] for x in A[1:]: if r