编程介的小学生 2017-04-11 09:45 采纳率: 20.5%
浏览 723
已采纳

Whirlwind

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.

Input

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].

Output

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

Sample Input

4
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

yes
no
no
yes

  • 写回答

1条回答 默认 最新

  • threenewbee 2017-04-28 15:49
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮