#982. 最小数和最大数
最小数和最大数
题目描述
输入个数,找到其中最小的数和最大的数
输入格式
第一行一个整数 接下来一行个整数,每个整数的绝对值不超过
输出格式
两个整数,分别为最小和最大的数
样例
输入数据
4
-1 -3 5 2
输出数据
-3 5
提示
输入的每个数字
Statistics
Related
In following contests:
In following homework:
输入n个数,找到其中最小的数和最大的数
第一行一个整数n 接下来一行n个整数,每个整数的绝对值不超过100000
两个整数,分别为最小和最大的数
4
-1 -3 5 2
-3 5
n<=100000
−100000<=输入的每个数字
<=100000
In following contests:
In following homework:
By signing up a TeMenHu universal account, you can submit code and join discussions in all online judging services provided by us.