๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • What would life be If we had no courage to attemp anything?
Problem Solving/SWEA

swea. min max

by DevIseo 2022. 3. 6.
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

๋Œ“๊ธ€