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