1310: 数字在哪

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:124 Solved:59

Description

给出$m$个整数,查找其中有无值为$n$的数,有则输出该数第一次出现的位置,没有则输出-1

位置从下标$1$算起。

Input

第一行输入一个整数$m$;

第二行为$m$个整数(范围0 ~ 999999),以空格隔开;

第三行为你要查找的$n$。

Output

n在数组中第一次出现的位置或-1。

Sample Input Copy

4
1 2 3 3
3

Sample Output Copy

3

HINT

0 ≤ $m$ ≤ 100

Source/Category