#include <bits/stdc++.h>
 
using namespace std;
 
#define endl "\n"
#define ll long long
#define fr(i,s,e) for(ll i=s;i<=e;i++)
#define rfr(i,s,e) for(ll i=s;i>=e;i--)
#define f(x,m) for(auto x : m)
#define ff first
#define ss second
#define pb push_back
#define pp pop_back
#define pf push_front
#define ppf pop_front
#define m_p make_pair
#define mod 1000000007
#define TIME cerr<<"Time Taken:"<<(float)clock()/CLOCKS_PER_SEC*1000<<"ms"<<endl
 
const ll INF = (1LL << 60) - 1;
 
int main()
{
 
#ifndef ONLINE_JUDGE
	freopen("../input-output/input.txt", "r", stdin);
	freopen("../input-output/output.txt", "w", stdout);
#endif
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
 
	int t;
	cin>>t;
	while(t--){
		ll r,b,d;
		cin>>r>>b>>d;
		int noPackets=min(r,b);
		r=max(r,b)-min(r,b);
		// cout<<r<<" ";
		if(noPackets==0){
			cout<<"NO\n";
			continue;
		}
		ll maxdiff=r/noPackets;
		if(r%noPackets)	maxdiff++;
		// cout<<maxdiff<<endl;
		if(maxdiff<=d)	cout<<"YES\n";
		else	cout<<"NO\n";
	}
 
	TIME;
	return 0;
}