#E. 找出数组最大值位置

    Type: Default 1000ms 256MiB

找出数组最大值位置

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

输入n个整数,存放在数组a[1]至a[n]中,输出最大数所在位置(n<=10000)。如果有相同的最大数,则输出首个最大数所在位置。

输入格式

输入两行: 第一行整数的数量 n,1 < n <= 10000。 第二行输入n个整数,相邻两个整数之间用单个空格分隔。

输出格式

输出一行,就是所输入整数中最大值的序号。

输入样例数据 1

5

1 2 3 4 5

输出样例数据 1

5

数据范围与提示

1 < n <= 10000

二级第3轮

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2023-7-28 9:30
End at
2023-8-19 1:30
Duration
520 hour(s)
Host
Partic.
10