1796: 【CSP数组】数组元素的查找▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:6 Solved:5

Description

给你 lns="http://www.w3.org/1998/Math/MathML">m 个整数,查找其中有无值为 lns="http://www.w3.org/1998/Math/MathML">n 的数,有则输出该数第一次出现的位置,没有则输出 lns="http://www.w3.org/1998/Math/MathML">1 

Input

第一行一个整数 lns="http://www.w3.org/1998/Math/MathML">m 代表数的个数 ( lns="http://www.w3.org/1998/Math/MathML">0m100 ) 。

第二行 lns="http://www.w3.org/1998/Math/MathML">m 个整数(空格隔开)( 这些数在lns="http://www.w3.org/1998/Math/MathML">01000000范围内 )。

第三行为要查找的数 lns="http://www.w3.org/1998/Math/MathML">n

Output

n 的位置或 lns="http://www.w3.org/1998/Math/MathML">1

Sample Input Copy

4
1 2 6 6
6

Sample Output Copy

3