Mock CCC '19 Contest 1 J2 - CCO
View as PDFYou have made it to CCO! After two days of competitions, the scores are finalized. You are given the scores of the contestants. You want to know the index (one-indexed) of the contestant who has the highest score. If there are multiple indices, print the smallest one.
Input Specification
The first line will contain the integer
, the number of contestants.
The second line will contain integers, the scores of each contestant
.
Output Specification
Output the index (one-indexed) of the contestant with the highest score. If there are multiple indices, print the smallest one.
Subtasks
For 2/15 of the points, .
For an additional 8/15 points, .
Sample Input 1
2
1 3
Sample Output 1
2
Sample Input 2
2
225 225
Sample Output 2
1
Comments