T = int(input())
for i in range(0, T):
U = int(input())
case_in = list(map(int, input().split()))
case_max = max(case_in)
case_min = min(case_in)
case = case_max - case_min
i += 1
print(f'#{i} {case}')
'Problem Solving > SWEA' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
swea4021.์๋ฆฌ์ฌ (0) | 2022.04.07 |
---|---|
swea2117.ํ ๋ฐฉ๋ฒ ์๋น์ค (0) | 2022.04.07 |
swea.14195 ๋ฏธ์๋ฌผ ๊ด์ฐฐ (0) | 2022.04.06 |
swea. ์ ๊ธฐ๋ฒ์ค (0) | 2022.03.06 |
swea.view (0) | 2022.03.06 |
๋๊ธ