짱해커가 되어보자

boj 5054 본문

프로그래밍_일반/백준

boj 5054

Spadework 2020. 3. 1. 09:40

* Solved 기준 브론즈2 단순 풀이

for _ in range(int(input())):
	input(); l = sorted(map(int, input().split()))
	print((l[-1]-l[0])*2)

 

'프로그래밍_일반 > 백준' 카테고리의 다른 글

boj 1551  (0) 2020.03.02
boj 1592  (0) 2020.03.01
boj 1296  (0) 2020.03.01
boj 1264  (0) 2020.03.01
boj 1233  (0) 2020.03.01
Comments