fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. double x,y;
  6. cin>>x>>y;
  7. if ((x>=0 && y>=0 && (x+y)<=6)||(x<=0 && y<=0 && (x+y)>=-6))
  8. cout<<"Yes"<<endl;
  9. else
  10. cout<<"No"<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0s 3416KB
stdin
-6 1
stdout
No