---
# System prepended metadata

title: How Much Does Daytona Cost?

---

# How Much Does Daytona Cost?
## [題目連結](https://codeforces.com/contest/1878/problem/A)
## 解題想法
* 由於題目中並未對子陣列做限制，因此條件為含有目標數字的陣列
## 花費的時間：25分鐘
## 程式碼
```cpp=01
#include<cstdio>
int main(){
    int t,j;
    scanf("%d",&t);
    for(j=0;j<t;j++){
        int i,n,k,a[101]={};
        scanf("%d %d",&n,&k);
        for(i=0;i<n;i++)scanf("%d",&a[i]);
        for(i=0;i<n;i++)if(a[i]==k)break;
        if(i==n)printf("NO\n");
        else printf("YES\n");
    }
    return 0;
}
