newton/solutions/python/1624A.py

8 lines
124 B
Python
Raw Normal View History

2025-01-11 11:41:29 +00:00
t = int(input())
for _ in range(t):
n = input()
a = [int(n) for n in input().split(' ')]
print(max(a)-min(a))