1805: The Mummy Returns

内存限制:128 MB 时间限制:2.000 S
评测方式:文本比较 命题人:
提交:0 解决:0

题目描述

The mummy returns! Imhotep has caught O’Connell’s little child to the Oasis of Ahm Shere to resurrect the Scorpion King. To rescue their son, O’Connell and Evelyn follow him, as well as our famous playboy, Jonathan. The Scorpion King gobbles up the power of Imhotep and becomes more powerful. The only way to kill him is to stab him with the Sword of Holy, which is in the hand of our playboy. This was simple because Jonathan was good at playing dart. But things turn bad when Imhotep is between Jonathan and the Scorpion King. If the sword stabs Imhotep before the Scorpion King, Imhotep will get back his power and become unbeatable! The two heroes, O’Connell and Evelyn, are fighting to make the two devil unmoved, and the playboy, Jonathan, is trying to kill the Scorpion King without hurting Imhotep. Will he make it? To simplify the problem, we assume that the two devils are two untouched circles, the sword is a point outside the circles, and its flying path is a straight ray. Giving the description of the two circles and the point, can you tell if there is a ray from the point which can intersect the circle of the Scorpion King without intersect the circle of Imhotep? Here two items intersect means they share at least one common point.

输入

The input file consists of multiple test cases. The only one line of each test case consists following parameters: Xs, Ys, Xi, Yi, Ri, Xk, Yk, Rk. (Xs, Ys) is the location of the Sword of Holy. (Xi, Yi) is the location of Imhotep, and Ri is its radius. (Xk, Yk) is the location of the Scorpion King, and Rk is its radius. Your program should process to the end of the input file.

输出

For each test case, output one line consisting of one English word “Yes” if Jonathon can kill the Scorpion King without hurt Imhotep, or “No” if not.

样例输入 复制

0 0 0 1 0.5 0 3 0.5
0 0 0 1 0.5 1 0 0.5

样例输出 复制

No
Yes

提示

The two circles will never intersect or cover each other, and the point is always outside the two circles.