#include #define int long long using namespace std; int t, h, n, av, a, b; signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); freopen("battle.in", "r", stdin); freopen("battle.out", "w", stdout); cin>>t; while(t --) { cin>>n>>h; av = 0; for(int i = 0; i < n; i ++) { cin>>a>>b; av += (a + b); } h *= 2; //cout<= -1) cout<<"YES\n"; else cout<<"NO\n"; } return 0; }