#include<stdio.h>
int main()
{
int a[20],b,c,i,n,x;
scanf("%d %d",&n,&x);
for(i=b=0;i<n;i++){
scanf("%d",&a[i]);
if(a[i]==x){
printf("%d",i);
b++;
}
if(b==0&&i+1==n){
printf("Not Found");
}
}
return 0;
}
思维导图链接 :https://www.edrawsoft.cn/viewer/public/s/c2612499659721