about summary refs log tree commit diff
path: root/codechef/maxfun.py
blob: fa0f64f02758585d90fb6d864b1be73f0849ee13 (plain) (blame)
1
2
3
4
5
#!/usr/bin/env python
for i in range(int(input())):
    input()
    a = list(map(int, input().split()))
    print(max(a)-min(a)<<1)