Welcome to ZOJ
Select Problem
ZOJ Problem Set - 3054

Time Limit: 1 Second      Memory Limit: 32768 KB

There is a very popular game named Zhen Sanguo Wushuang. My favorite character in this game is GuanYu, because of his powerful skill - whirlwind. As you can see in the picture, it's a terrible hurricane (you can treat it as a circle with radius of R) and anyone who stays in or on the boundary of it for T1 seconds will be dead. The duration of this skill will be T2 seconds. Besides there is a useful tool in this game called Tuimo Sword, when you use that, your enemy's speed will be slow down to half and the effect will lasts for T3 seconds. It's so powerful that you can only use it once, but you can decide when to use it.

Assuming you are chasing your enemy now, and the distance between you and the enemy is D meters. You both move the same direction and you start to use your skill at the very beginning. Your speed is V1 meters per second and the enemy's speed is V2 meters per second. Give all the integers mentioned above, you must determined whether you can kill the enemy or not when the skill stopped. Note: if you reached the enemy, you just followed him and you can assume you are in the same position as him, but never pass through the enemy.


The first line of the input is a integer T indicates the case number.

In each case, there is one line containing 7 integers: D, R, T1, T2, T3, V1, V2, all the integer in the input will be in [1, 1000].


For each case, output yes if you can kill your enemy or no if you can't.

Sample Input

1 2 1 1 1 2 1
36 24 10 13 2 6 4
12 24 45 100 25 4 6
36 24 10 100 24 4 6

Sample Output


Author: YANG, Kete
Source: ZOJ Monthly, October 2008
Submit    Status