SHARE
TWEET

Untitled

a guest Nov 22nd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top