Advertisement
amine99

Untitled

Feb 7th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define loop(i,b,e) for(int i = b ; i < e ; i++)
  5. #define reloop(i,e,b) for(int i = e-1 ; i >= b ; i--)
  6. typedef long long ll;
  7. typedef vector<int> vi;
  8.  
  9. void io() {
  10.     ios_base::sync_with_stdio(false);
  11.     cin.tie(0);
  12.     cout.tie(0);
  13. }
  14.  
  15. //Declaration
  16. int x,y;
  17. //===========
  18.  
  19. int main() {
  20.     io();
  21.     cin >> x >> y;
  22.     y--;
  23.     puts((x - y) % 2 == 0 && x >= y ? "Yes" : "No");
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement