Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main ()
- {
- long long x,c=0,o=1,i=0,y;
- cin >>x;
- cin >>y;
- while (o<y)
- {
- o++;
- c++;
- }
- while (c<x)
- {
- c+=2;
- }
- if((c==x)&&(o==y))
- cout <<"Yes";
- else
- cout <<"No";
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement