#include<bits/stdc++.h>
#define _for(i,n) for(int i=0;i<n;i++)
#define _forr(i,n) for(int i=1;i<=n;i++)
#define _rof(i,n) for(int i=n-1;i>=0;i--)
#define _roff(i,n) for(int i=n;i>=1;i--)
#define nl cout << "\n"
#define ff first
#define ss second
#define pii pair<int,int>
#define pb push_back
#define pp pop_back
#define vl vector<ll>
#define lsb(x) (x & ~(x-1))
typedef long long ll;
typedef long double ld;
using namespace std;
ll const mod=1e9+7;
ll const MX = 3e5+100;

int n, _t, r, b, d;

int main()
{
    cin>>_t;
    while(_t--)
    {
        cin>>r>>b>>d;
        bool ok =0;
        if(ceil((ld)max(r,b)/(ld)min(r,b))-1<=d)
            ok=1;
        if(ok)
            cout<<"YES";
        else
            cout<<"NO";
        nl;
    }
}
