[contest:https://codeforces.me/contest/1749]↵
[Educational codeforces round :138]↵
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;↵
}
[Educational codeforces round :138]↵
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;↵
}



