Ankit_132

A

Jun 27th, 2024
922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int t;
  6.     cin>>t;
  7.     while(t--){
  8.         int n;
  9.         cin >> n;
  10.         for(int i = 0; i < n; i++){
  11.             int x, y;
  12.             cin >> x >> y;
  13.             if(y < - 1) cout << "NO" << endl;
  14.             else cout << "YES" << endl;
  15.         }
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment