Ankit_132

Problem

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