func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     long long int t;     cin >> (t);     while (t--) {       long long int n, k;       cin >> n >> k;       long long int a[n + 2];       memset(a, -1, sizeof a);       bool ok = false;       for (long long int i = 0; i < n; ++i) {         cin >> a[i];         if (a[i] == k) ok = true;       }       if (n == 1 && ok) {         cout <<  yes               <<   n ;         continue;       }       if (!ok) {         cout <<  no                <<   n ;         continue;       }       ok = false;       for (long long int i = 0; i < n; i++) {         if ((a[i] >= k && a[i + 1] >= k) || (a[i] >= k && a[i + 2] >= k))           ok = true;       }       if (ok)         cout <<  yes               <<   n ;       else         cout <<  no               <<   n ;     }   }   