OJ-Problems-Source/OpenJudge/ch0109_冰封/01.c
2016-07-06 14:15:22 +08:00

18 lines
259 B
C

#include<stdio.h>
int a[10000];
int main(void){
int N,M,i;
scanf("%d",&M);
for(i = 0; i < M; i++){
scanf("%d",&a[i]);
}
scanf("%d",&N);
for(i = 0; i < M; i++){
if(a[i] == N){ printf("%d",i+1);return 0;}
}
printf("-1");
return 0;
}