荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: huhaiming (一生只爱她), 信区: Program
标  题: problem A
发信站: 荔园晨风BBS站 (Sat May 24 20:04:05 2003), 站内信件


Two Circles and a Rectangle


Time limit: 1 Seconds   Memory limit: 32768K
Total Submit: 0   Accepted Submit: 0


Give you two circles and a rectangle, your task is to judge wheather the
 two
circlescan be put into the rectangle with no part of circles outside
the
retangle.

Input

There are multiple test cases. In every test cast, there are four
float-point
numbers:

a, b, r1, r2

where, a and b are two sides of the rectangle, r1 and r2 are radii of
the two
circls.


Output

Print a "Yes", if the circles can be put into the rectangle. Otherwise,
 print
a "No".

You can safely assume x < y, where x and y are float-point numbers, if
x < y + 0.01.


Sample Input

5 4 1 1
5 4 1.5 2


Sample Output

Yes
No


Author: CHEN, Gaoli



------------------------------------------------------------------------
--------

Submit   Back   Status

------------------------------------------------------------------------
--------

Zhejiang University Online Judge V1.0

--

菩提本无树,明镜亦非台

本来无一物,何处惹尘埃

※ 来源:·荔园晨风BBS站 bbs.szu.edu.cn·[FROM: 192.168.0.200]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店