【POJ】:POJ3386 Halloween Holidays
来源:互联网 发布:网络电视直播tv版 编辑:程序博客网 时间:2024/05/18 00:51
题意
不得不说服了这道题了,前面讲了好大一串没有用的,南瓜简直毛线用都没有好不!!!
题意超级简单,就是问一个大环能不能切出两个环形(注意不是圆)
情况容易考虑不全~有两个环并排的情况
直接给代码
代码
#include <iostream>using namespace std;int main(){ int A,a,B,b,P; cin>>A>>a>>B>>b>>P; if((B<=a && A<=P) ||(A<=b &&B<=P) ||A+B<=P){//有可能A比B小 cout<<"Yes"<<endl; } else cout<<"No"<<endl; return 0;}
0 0
- 【POJ】:POJ3386 Halloween Holidays
- POJ3386-Halloween Holidays
- poj 3386 Halloween Holidays
- poj 3386 Halloween Holidays 水题
- 北大ACM POJ 3386 Halloween Holidays
- POJ 3386 Halloween Holidays(水题)
- POJ 3386 Halloween Holidays(计算几何)
- poj3386
- poj3386
- 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
- 如何观察?
- 数据库实战优化--Duplicate,效率
- NYOJ 60:谁获得了最高奖学金
- sg面
- 三、python安装cocos2d-x3.4 autoBindings
- 【POJ】:POJ3386 Halloween Holidays
- 白话经典算法系列之十一 一道有趣的GOOGLE面试题 --【解法2】
- MAHOUT文本向量相似度计算
- PAT(甲级)1027
- String、StringBuffer与StringBuilder的区别
- 扫描由元组组成列表
- 改变UITextField placeHolder颜色、字体
- poj2018 Best Cow Fences
- POJ 3278 Catch That Cow