본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]15969번 행복

by 현장 2021. 7. 13.

-코드

n = int(input())
arr = sorted(list(map(int, input().split())))
print(arr[-1] - arr[0])