Problem1392--查找x

1392: 查找x

[Creator : admin]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

输入一个数n(1<=n<=200),然后输入n个数值各不相同的数,再输入一个值x,输出这个值在这个数组中的下标(从0开始,若不在数组中则输出-1)。

Input

测试数据有多组,输入n(1<=n<=200),接着输入n个数,然后输入x。

Output

对于每组输入,请输出结果。

Sample Input Copy

4
1 2 3 4 
3 

Sample Output Copy

2

Source/Category

Please give us a Star @HUSTOJ Github!

欢迎关注微信公众号onlinejudge