2318: 最大的数及最小的数

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Normal Judger Creator:
Submit:51 Solved:13

Description

第一行输入n,第二行输入n个数,并用数组保存这些数,找出该数组中最大的数及最小的数并输出。(序号)

Input

第一行输入n

第二行输入n个数

Output

输出该数组中最大的数及最小的数

Sample Input Copy

10
4  6  9  23  45  5  90  123  3  88

Sample Output Copy

max=123 (8)
min=3 (9)

Source/Category