练习专区

今天的一小步就是明天的一大步
Problem 1097 输出最大值最小值和它们在序列中的位置
Accepted: 13   Total Submit: 35
Time Limit: 1000ms   Memory Limit: 30720KB
Description
任意输入n个数,输出其中最大数和最小数,并输出它们在序列中的位置。
Input
输入一组数的个数n以及这n个数的值
Output
最大数,最大数的位置 最小数,最小数的位置
Sample Input
6
2.9 -9.1 32 -12 5.6 8
Sample Output
max=32,max_location=3
min=-12,min_location=4
Hint
提交     返回