Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int t,n,i,j,k,x,a,b,ans,y;
  8. scanf("%d",&t);
  9. for(i=0;i<t;i++){
  10. scanf("%d %d",&x,&y);
  11. if(x==1){
  12. if(y==1)cout<<"YES\n";//printf dite paris
  13. else cout<<"NO\n";//printf
  14. continue;
  15. }
  16. if(x==2||x==3){
  17. if(y==1||y==2||y==3)cout<<"YES\n";//printf
  18. else cout<<"NO\n";//printf
  19. continue;
  20. }
  21. else cout<<"YES\n";//printf
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement