poj3386

来源:互联网 发布:js array 清空 编辑:程序博客网 时间:2024/05/21 17:29
//A和B的大小关系不确定,也不要忘了A+B<=P的情况

#include
using namespace std;
int main(){
int A,a,B,b,P;
while(cin>>A>>a>>B>>b>>P&&A>0&&A<=1000000&&a>0&&a<=1000000&&A>0&&A<=1000000
&&B>0&&B<=1000000&&b>0&&b<=1000000&&P>0&&P<=1000000&&a
if((A<=b&&B<=P)||(B<=a&&A<=P)||A+B<=P)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
return 0;
}
0 0
原创粉丝点击