#B. 新型跑步

    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.

题目背景

以往我们跑步都是相同的距离, 看谁花费时间短, 新型跑步是相同的时间, 看谁跑的远.

题目描述

nn 名同学跑步, 经过一段时间后, 第 ii 名同学跑步的距离为 aia_i , 我们现在想知道, 跑最远的同学的编号是多少, 如果有多个同学跑的最远, 输出编号更大的同学编号.

数据格式

输入格式

第一行一个整数 nn, 表示有 nn 个元素

第二行有 nn 个整数 aia_i

输出格式

输出跑最远的同学的编号

样例

5
30 18 27 19 30
5

数据范围

1n2×1051 \leq n \leq 2\times 10^5

1ai1061 \leq a_i \leq 10^{6}

[NOI蓝图杯] 六月月赛

Not Attended
Status
Done
Rule
Ledo
Problem
6
Start at
2023-6-2 12:00
End at
2023-6-6 0:00
Duration
84 hour(s)
Host
Partic.
60