fork download
  1. #include "bits/stdc++.h"
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int x{},y{};
  7. cin >> x >> y;
  8. int losingTeam = min(x,y);
  9. int winningTeam = max(x,y);
  10. cout << (losingTeam + 3 > winningTeam? "Yes":"No");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5324KB
stdin
Standard input is empty
stdout
Yes