Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x;
  8. int y;
  9. cin>>x;
  10. cin>>y;
  11. if((x<=-5&&x>=-10&&y<=0&&y>=-5)||(x>=0&&x<=5&&y>=0&&y<=5)){
  12. cout<<"YES";
  13. }
  14. else
  15. cout<<"NO";
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement