x = int(input())
ls = []
maxa = -2147483648
minb = 2147483647
for i in range(x):
x = int(input())
if(x > maxa):
maxa = x
if(x < minb):
minb = x
print(minb, end=" ")
print(maxa)
2093 求最值
最新推荐文章于 2024-04-05 16:28:28 发布