func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(0);     int t;     cin >> t;     while (t--) {       int n, x;       cin >> n >> x;       ;       int a[n];       int b[n];       for (int i = 0; i < n; i++) {         cin >> a[i];         cin >> b[i];       }       reverse(b, b + n);       bool ans = 1;       for (int i = 0; i < n; i++) {         if (a[i] + b[i] > x) {           ans = 0;           break;         }       }       if (ans)         cout <<  Yes  << endl;       else         cout <<  No  << endl;     }     return 0;   }   