4828. [파이썬 S/W 문제해결 기본] 1일차 - min max
풀이
casenum = int(input())
for case in range(1, casenum+1):
amount = int(input())
inputstr = input().split()
numlist = list(map(int, inputstr))
minnum = min(numlist)
maxnum = max(numlist)
print(f'#{case} {maxnum - minnum}')