判断下就好,直接贴代码。
//poj 3386
//sep9
#include <iostream>
using namespace std;
int A,a,B,b,P;int judge()
{if(A+B<=P)return 1; if(A>B){swap(A,B);swap(a,b);}if(B>P)return 0;if(A>b)return 0;return 1;
}int main()
{scanf("%d%d%d%d%d",&A,&a,&B,&b,&P);if(judge()==1)printf("Yes\n");elseprintf("No\n");
}