#include <bits/stdc++.h>
using namespace std;
#define fast() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define int long long
#define pb push_back
#define vi vector<int>
#define size(x) (int)((x).size())
#define memf(a) memset(a,false,sizeof(a))
#define mem(val, var) memset(var,val,sizeof(var))
#define F first
#define S second
#define all(v) v.begin(),v.end()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define fr(i, n) for(int i=0;i<n;i++)
#define tr(v) for(auto it=v.begin();it!=v.end();it = next(it))
const int inf = 1e16;
const int N = 1e5 + 1;
const int mod = 1e9 + 7;

void solve() {
	int a, b, d; cin >> a >> b >> d;
	int t = min(a, b);
	int s = max(a, b);

	if (t * (d + 1) >= s)
		cout << "YES\n";
	else
		cout << "NO\n";
}

signed main() {
	fast();
	int t = 1; cin >> t;
	while (t--) solve();
	return 0;
}