fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. double x,y;
  7. cin>>x>>y;
  8. cout<<( y >= 2 && x*x + y*y >= 16 && x*x + y*y <= 36 ? "YES" : "NO");
  9. return 0;
  10. }
Success #stdin #stdout 0s 3416KB
stdin
0 0
stdout
NO