An ant's story

来源:互联网 发布:新浪网络经纪人 编辑:程序博客网 时间:2024/05/01 08:57

Long long ago, there is an ant crawling on an L-meter magic rubber band with speed of v cm/s.The magic rubber band will elongate m meters every second. We can assume that the magic rubber band elongates equably. Now, the ant is on the start point and crawling to another point, please tell me whether it can reach the endpoint.


Input
The first line of the input is T, which stands for the number of test cases you need to solve.

Each case include three integers: L , v , m ( 0< L< 10^9,0<= v, m< 10^ 9,).


Output

For each test case, if the ant can reach endpoint, output "YES", otherwise "NO".


Sample Input
1
99999 61 1
Sample Output

YES


#include<stdio.h>int main(){  int t,l,v,m;  scanf("%d",&t);  while(t--)  {    scanf("%d%d%d",&l,&v,&m);    if (v>0)      printf("YES\n");    else      printf("NO\n");  }  return 0;}


0 0
原创粉丝点击