ZakenChannel

Fourth task

Oct 7th, 2020 (edited)
2,033
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. using namespace std;
  4.  
  5. int main() {
  6.     int a, b, c, x, y;
  7.     cin >> a >> b >> c >> x >> y;
  8.     if ((a <= x && b <= y) || (a <= y && b <= x)) {
  9.         cout << "YES";
  10.     }
  11.     else if ((a <= x && c <= y) || (a <= y && c <= x)) {
  12.         cout << "YES";
  13.     }
  14.     else if ((b <= x && c <= y) || (b <= y && c <= x)) {
  15.         cout << "YES";
  16.     }
  17.     else {
  18.         cout << "NO";
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment