#2534. 【例41.3】 最小数和最大数
【例41.3】 最小数和最大数
说明
输入 $n$ 个数,找到其中最小的数和最大的数。输入格式
第一行一个整数 $n$ ($1≤n≤100$),表示数据的个数。第二行 $n$ 个整数 $a_i$($1≤a_i≤10000$)。
输出格式
两个整数,分别表示最小的数和最大的数。4
3 9 8 1
1 9
4
3 9 8 1
1 9
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.