⌨️
[AtCoder]ABC-064|B - Traveling AtCoDeer Problem
設問ページ
提出結果
def getInt():
return int(input())
def getIntList():
return list(map(int, input().split()))
def main():
n = getInt()
a = getIntList()
a.sort()
print(a[n - 1] - a[0])
if __name__ == "__main__":
main()
Discussion