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.
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,).
For each test case, if the ant can reach endpoint, output "YES", otherwise "NO".
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
- An ant's story
- 3343An ant's story
- hdu 3343 An ant's story
- HDU 3343 An ant's story【数学】
- hdu 3343 An ant's story 好大一个坑
- HDU3343An ant's story【水】
- hdu3966 Aragorn's Story
- hdu3966 Aragorn's Story
- hdoj3966Aragorn's Story【树链刨分】
- hdu_3966_Aragorn's Story(树链剖分裸题)
- hdu3966Aragorn's Story
- 【hdu3966】Aragorn's Story
- POJ3207Ikki's Story IV
- HDU3966 Aragorn’s Story
- HDU3966-Aragorn's Story
- Aragorn's Story HDU
- Aragorn's Story HDU
- Peter's Story(C#委托)
- 【周练3016.3.5】老王修马路(一)(水)
- VS2013使用EF6与mysql数据库
- 设置元素等待
- Git本地命令行操作常用命令
- Python的单引号、双引号和三引号的字符串
- An ant's story
- 上机题目(初级)- 鼠标控制小球(Java)
- Xcode编译Undefined symbols for architecture xxx 错误总
- POJ 1006 中国余数定理
- 运行Android studio 模板报错
- 新手学习51单片机求解
- PHP正则表达式
- android pull解析xml案例
- 【数据库】SQL server 评估期已过。有关如何升级的测试版软件的信息,请访问..