fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int flag;
  8. double x,y,a;
  9. cin >> x >> y;
  10. a*a==x*x+y*y;
  11. if (x>=0)
  12. {
  13. if(((y>=0) && (a*a<=36)) || ((y<=0) && (y>=x-6)))
  14. cout << "Yes";
  15. else
  16. cout << "No";
  17. }
  18. else
  19. cout << "No";
  20. return 0;
  21. }
Success #stdin #stdout 0s 3416KB
stdin
0 6
stdout
Yes