#include <stdio.h>
int main()
{
int n,x;
scanf("%d %d",&n,&x);
int a[n];
int m,b ;
int i,j,k;
for(i=0; i<n; ++i){
scanf("%d",&m);
a[i] = m ;
}
for(j=0; j<n; ){
// printf("a[%d]=%d ",j,a[j]);
if(a[j] == x){
printf("%d\n",j);
break;
}
++j;
if(j == n){
printf("Not Found");
}
}
return 0;
}
8-0. 查找整数(10)
最新推荐文章于 2022-04-27 08:30:00 发布