fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x,y;
  7. cin >> x >> y;
  8. if (x>=0 && y>=0 && (sqrt(x*x+y*y)<=6) && (y>=(3-x))){
  9. cout << "YES";
  10. }
  11. else cout << "NO";
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3464KB
stdin
1 1.9
stdout
Standard output is empty