#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define el "\n"
#define El "\n"
#define se " "
#define Se " "
#define ff first
#define ss second
#define pb push_back
#define boom ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
ll cnt1,res1,w,h,t,a,res,k,k1,k2,x,y,ans,sum,j,
cnt,n,m,b,c,f,d,z,oao,a1,b1,c1,d1,i,kk,e,A[1000009],p,dp[1000009],AA[1009][1009];
string s,s1,s2="",tt="";
map<ll,ll>mp2;
map<char,ll>mp;
set<ll>st;
multiset<ll>mst;
vector<ll>v;
vector<ll>vv;
pair<ll,ll>pp[1000009];
char aa[1009][1009],bb;
const ll MX=1e9;
ll binpow(ll a,ll n)
{
    if(n==0) return 1;
    if(n%2==1) return binpow(a,(n-1)/2)*binpow(a,(n-1)/2)*a;
    else return binpow(a,n/2)*binpow(a,n/2);
}
void okk()
{
     cin>>a>>b>>c;
     if(max(a,b)<=min(a,b)*(c+1)) cout<<"YES"<<el;
     else cout<<"NO"<<el;
}
int main()
{
    boom;
    cin>>t;
    while(t--)
    {
    okk();
    }



}
