方法一:
# encoding = utf-8
# 开发者:xxx
# 开发时间: 20:36
# "Stay hungry,stay foolish."
n = int(input())
n_list = list(map(int,input().split()))
print(max(n_list))
print(min(n_list))
print(sum(n_list))
方法二:
n = int(input())
numbers = list(map(int, input().split()))
sorted_numbers = sorted(numbers)
max_numbers = sorted_numbers[-1]
min_numbers = sorted_numbers[0]
sum_numbers = sum(numbers)
print(max_numbers)
print(min_numbers)
print(sum_numbers)