#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define int long long int
#define vi vector<int>
#define mod 1e18 + 7
#define ff first
#define ss second
#define ins insert
#define endl "\n"
#define hash0111                  \
    ios_base::sync_with_stdio(0); \
    cin.tie(0);                   \
    cout.tie(0)
#define tc    \
    int t;    \
    cin >> t; \
    while (t--)
#define pb push_back
#define mp make_pair
//const int MOD = 1e11 + 7;

void solve()
{
    int r, b, d;
    cin >> r >> b >> d;

    if (d == 0)
    {
        if (r == b)
        {
            cout << "YES" << endl;
        }
        else
        {
            cout << "NO" << endl;
        }
    }
    else
    {
        if (abs(r - b) <= d)
        {
            cout << "YES" << endl;
        }
        else
        {
            int mini = min(r, b);
            int maxi = max(r, b);

            int div = maxi / mini;

            int rem = maxi % mini;
            if (rem != 0)
            {
                div++;
            }

            int dif = abs(div - 1);
            if (dif <= d)
            {
                cout << "YES" << endl;
            }
            else
            {
                cout << "NO" << endl;
            }
        }
    }
}

signed main()
{
    hash0111;

    tc
    {
        solve();
    }
    return 0;
}