F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

Assertion

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 1314    Accepted Submission(s): 618


Problem Description
Alice boldly asserts to you that if you divide $m$ items into $n$ groups, there will definitely be one group with a quantity of items greater than or equal to $d$.

Due to Alice's excessive self-confidence, she is unaware that some of her assertions are actually incorrect. Your task is to determine whether Alice's assertion is correct. If Alice's assertion is true, output 'Yes'; otherwise, output 'No'.
 

Input
The input consists of multiple test cases. The first line contains a single integer $T(1\le T\le 10^5)$ — the number of test cases. Description of the test cases follows.

The first line of each test case contains three integers $n,m,d$ $(2\le m\le10^9,1\le n \lt m,0\le d \le 10^9)$,$n$ and $m$ represent the number of groups and the quantity of items, respectively, in Alice's assertion. The symbol $d$ signifies Alice's claim that there will always be at least one group with a quantity of items greater than or equal to $d$.
 

Output
For each set of data, output a string. If Alice's assertion is correct, output 'Yes'; otherwise, output 'No'.
 

Sample Input
3 1 2 1 2 3 2 3 10 4
 

Sample Output
Yes Yes Yes
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-08 08:30:42, Gzip enabled