mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
259 B
C
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;
|
|
}
|