6 lines
130 B
Python
6 lines
130 B
Python
t = int(input())
|
|
for _ in range(t):
|
|
n = int(input())
|
|
x = list(map(int, input().split()))
|
|
print((max(x) - min(x)) * 2)
|