Advertisement
Ankit_132

A

May 26th, 2024
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5.     int t;
  6.     cin>>t;
  7.    
  8.     while(t--){
  9.         int n, m;
  10.         cin>>n>>m;
  11.        
  12.         if(n>=m && n%2==m%2)
  13.             cout<<"Yes\n";
  14.         else
  15.             cout<<"No\n";
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement