Problem list
Log in
#r02768 · Online Judge > GoldOJ

Position of Minimum

Bronze III 2.0 s 1024 MB

Given $n$ followed by $n$ integers (one per line), print the 1-based position of the minimum. If it occurs multiple times, print the first position.

Input

First line $n$ ($1 \le n \le 1000$); then $n$ integers, each in $[-1000, 1000]$, one per line.

Output

Print the 1-based position of the first minimum.

Example 1

Input
5
3
-9
1
7
-4
Output
2
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code