#1393. [语言过关]求最大值、最小值
[语言过关]求最大值、最小值
说明
给出n个整数,求出最大值和最小值
输入格式
输入共两行,第一行为一个正整数n(0<n<1000)。第二行有n个整数。
输出
输出一行两个数,第一个是最大值,第二个是最小值
样例输入
5
36 12 65 4 2
样例输出
65 2
样例
Statistics
Related
In following contests:
In following homework:
给出n个整数,求出最大值和最小值
输入共两行,第一行为一个正整数n(0<n<1000)。第二行有n个整数。
输出一行两个数,第一个是最大值,第二个是最小值
5
36 12 65 4 2
65 2
In following contests:
In following homework:
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.