fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. double x, y;
  8. cin >> x >> y;
  9. cout << (abs(x) + abs(y) <= 5 || x > 0 && y > 0 && x*x + y*y <= 25 ? "Yes" : "No");
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
3 3.99
stdout
Yes