Advertisement
amine99

Untitled

Feb 7th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main ()
  4. {
  5. long long x,c=0,o=1,i=0,y;
  6. cin >>x;
  7. cin >>y;
  8. while (o<y)
  9. {
  10. o++;
  11. c++;
  12. }
  13. while (c<x)
  14. {
  15. c+=2;
  16. }
  17. if((c==x)&&(o==y))
  18. cout <<"Yes";
  19. else
  20. cout <<"No";
  21.  
  22. return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement