Codeforces Beta Round 99 (Div. 1) Problem A: cowardly rook
include<bits/stdc++.h>
using namespace std ; int main(){ int t; cin>>t; while(t--){ int n,m; cin>>n>>m; for(int i=0;i<m;i++){ int a,b; cin>>a>>b; } if(m<n){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } }
return 0;
}