当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3747:Scout YYF II

题目描述
After the dangerous "mine road", YYF has finally enter the enemy's base, which is a round glass building. However, this is totally a trap! There are no enemy in the base but bombs instead. Some time after YYF enter the base, the enemy's detectors find him and ignite the bomb system to kill him. As a professional scout, YYF feels the bomb and choose a best direction to run. When a bomb explodes, it will destroy a circle area including the boundary which becomes larger and larger. YYF runs very fast in the same speed as the radius of bomb area grows. If he can run out of the base before the explosions destroy him, he will be safe after that. Now you are given the YYF's and bombs' initial places, please calculate that if our couragous scout can possibly save himself.
输入解释
The input contains many test cases ended with EOF.
The first line of each test case is N (1 ≤ N ≤ 10) and R (1 ≤ R ≤ 1000), standing for the number of bombs and the radius of the base. The center of the base is always at (0,0). The second line of each test case is two real numbers standing for the initial place of YYF.
In the next N lines, each contains two real numbers standing for the initial place of a bomb.
It is guaranteed that all the initial places is in the base.
输出解释
For each test case, if YYF can escape safely, output "Yes" in a single line, otherwise "No" instead.
输入样例
2 10
0 0
1 0
-1 0
4 10
0 0
1 0
-1 0
0 1
0 -1
输出样例
Yes
No

该题目是Virtual Judge题目,来自 北京大学POJ

源链接: POJ-3747

最后修改于 2020-10-29T07:10:10+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
1000 65536