poj 3386 Halloween Holidays 水题
来源:互联网 发布:oracle导入数据dmp 编辑:程序博客网 时间:2024/06/08 10:55
判断下就好,直接贴代码。
//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");}
0 0
- poj 3386 Halloween Holidays 水题
- poj 3386 Halloween Holidays
- POJ 3386 Halloween Holidays(水题)
- 北大ACM POJ 3386 Halloween Holidays
- POJ 3386 Halloween Holidays(计算几何)
- 【POJ】:POJ3386 Halloween Holidays
- POJ3386-Halloween Holidays
- Holidays
- Holidays
- POJ 3370 Halloween treats
- poj 3370 Halloween treats
- poj 3370 Halloween treats
- POJ 3370 Halloween Treats
- poj 3370 Halloween treats
- poj 3370 Halloween treats
- poj 3370 Halloween treats
- Poj 3370 Halloween Treats
- POJ-3370-Halloween treats
- ios成长之路之imageview
- SVN服务器迁移
- Linux目录结构
- nginx 多进程进程 epoll
- 求单向链表倒数第K个数
- poj 3386 Halloween Holidays 水题
- GDB调试程序(二)
- ListView的增删改查等方法
- C++类模板中的模板函数
- 利用MATLAB将文本中的数据写入Excel
- 关于 std::set/std::map 的几个为什么
- 1-23下午方法和数组
- ios成长之路UIView
- windows server 2008R2下 TOMCAT 应用程序部署