Advertisement
paster442

Untitled

Sep 29th, 2022 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a, b, c, d, e;
  7. cin >> a >> b >> c >> d >> e;
  8. if (a > c) swap(a, c);
  9. if (b > c) swap(b, c);
  10. if (a > b) swap(a, b);
  11. if (d > e) swap(d, e);
  12. cout << (a <= d && b <= e ? "YES" : "NO");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement