Processing math: 100%
祝同学们学习进步,编程快乐!

Problem D: Branch on Condition - Circle in a Rectangle

"
Time Limit 1 秒/Second(s) Memory Limit 512 兆字节/Megabyte(s)
提交总数 1552 正确数量 651
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签 分支 几何

Circle in a Rectangle 

Write a program which reads a rectangle and a circle, and determines whether the circle is arranged inside the rectangle. As shown in the following figures, the upper right coordinate (W,H) of the rectangle and the central coordinate (x,y) and radius r of the circle are given. Circle inside a rectangle

Circle inside a rectangle

Five integers W, H, x, y and r separated by a single space are given in a line.
Print "Yes" if the circle is placed inside the rectangle, otherwise "No" in a line.
5 4 2 2 1
Yes

−100≤x,y≤100

0<W,H,r≤100

AOJ
祝同学们学习进步,编程快乐!