#include<bits/stdc++.h>
using namespace std;

#define ll long long int
#define lld long long double
#define vi vector<int>
#define vll vector<ll>
#define mkp make_pair
#define pb push_back
#define clr(a) memset(a,0,sizeof(a))
#define loop(i,n)   for(int i=0;i<n;i++)
#define rloop(i,n)  for(ll i=n-1;i>=0;i--)
#define pii pair<int,int>
#define pll pair<ll,ll>
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);  cout.tie(NULL);
#define test int t; cin>>t; while(t--)
#define F first
#define S second
#define all(a) (a.begin(),a.end())
#define lcm(a,b) ((a*b)/__gcd(a,b))
#define MOD 1000000007
#define sz(x) x.size()
 
int main(){
    fast
    test{
        ll a,b,c; cin>>a>>b>>c; c++;
        ll x=min(a,b),y=max(a,b); a=x*c;
        if(a>=y) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    } 
    return 0 ;
}