Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- int main() {
- int a, b, c, x, y;
- cin >> a >> b >> c >> x >> y;
- if ((a <= x && b <= y) || (a <= y && b <= x)) {
- cout << "YES";
- }
- else if ((a <= x && c <= y) || (a <= y && c <= x)) {
- cout << "YES";
- }
- else if ((b <= x && c <= y) || (b <= y && c <= x)) {
- cout << "YES";
- }
- else {
- cout << "NO";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment