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