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