import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline readlines=sys.stdin.buffer.readlines import itertools t=int(readline()) def myon(a): INF=10**9+7 n=len(a) dp=[0]*n res=[1]*n for c in range(2, n+1): newdp=[INF]*n for i, ai in enumerate(a): mn=min([ai-aj for aj, dpj in zip(a[:i], dp[:i]) if dpjmn: newdp[i]=mn dp=newdp end=True for i in range(n): if dp[i]