Problem 2710 --Branch on Condition - Circle in a Rectangle

2710: Branch on Condition - Circle in a Rectangle

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $1131$ 正确数量 $578$
裁判形式 标准裁判/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

推荐代码 查看2710 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] polaris 817985 2022-03-09 22:09:17
内存最少[$0 $KB] wo 683245 2020-12-15 10:58:54
第一AC 张文龙 302216 2018-10-31 23:27:41
第一挑战 张文龙 302216 2018-10-31 23:27:41

赛题来源/所属竞赛 会津大学《C++ Programming I》 C++程序设计(入门)

竞赛编号 竞赛名称 竞赛时间 访问比赛
1774 2023-2024-1学期《C语言程序设计》:分支结构【23计算机】 2023-10-16 00:00:00 请登录
1719 2022-2023-1学期《C语言程序设计》:分支结构【22计算机】 2022-10-17 00:00:00 请登录
1659 2021-2022-1学期《C语言程序设计》:分支结构【21计算机】 2021-10-18 00:00:00 请登录
1563 2020-2021-1学期《C语言程序设计》:分支结构【20计算机12345】 2020-10-16 19:00:00 请登录
1414 2019-2020-1学期《Python程序设计》控制结构【19数据科学123班】 2019-10-16 10:00:00 请登录