반응형
n= int(input())

for i in range(n): 
    a = int(input())
    aa = list(map(int,input().split()))
    print(min(aa),max(aa))
반응형

+ Recent posts