Saleh127

Untitled

May 7th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. int main()
  5. {
  6. ll t,a,c,d,e,f,i,j,k,l;
  7. cin>>t;
  8. while(t--)
  9. {
  10. cin>>a>>c;
  11. if(a==1 or c==1) printf("YES\n");
  12. else if(a==2 && c==2) printf("YES\n");
  13. else printf("NO\n");
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment