Problem description
give n Number , Find out n The maximum number of , minimum value , and .
Input format
The first line is an integer n, The number of numbers .
The second line has n Number , For a given n Number , The absolute value of each number is less than 10000.
Output format
Output three lines , One integer per row . The first line represents the largest of these numbers , The second line represents the smallest of these numbers , The third line represents the sum of these numbers .
summary :map Functions should be clear about usage
n = int(input())
list1 = list(map(int,input().split()))
print(max(list1))
print(min(list1))
print(sum(list1))