#include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

void solve(int r, int b, int diff)
{
    int small = min(r,b);
    int larger = max(r,b);
    int biggestDiff = (larger % small == 0) ? larger/small - 1: larger/small;
    if (diff >= biggestDiff)    {
        cout << "YES" << endl;
    }   else {
        cout << "NO" << endl;
    }
}

int main()
{
    int t;
    cin >> t;
    for (int i = 0; i < t; i++) {
        int r,b,diff;
        cin >> r >> b >> diff;
        solve(r,b,diff);
    }
}