Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- int y;
- cin>>x;
- cin>>y;
- if((x<=-5&&x>=-10&&y<=0&&y>=-5)||(x>=0&&x<=5&&y>=0&&y<=5)){
- cout<<"YES";
- }
- else
- cout<<"NO";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement