#include <bits/stdc++.h>
using namespace std;
 
#define ll long long
#define int long long
#define pb push_back
#define fi first
#define se second
#define INIT ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)

#define debug(x) cout << #x << " => " << x << "\n";
#define sp " "
 
const int inf = 0x3f3f3f3f;
const int MX = 2e5+5;
const int mod = 1e9+7;

int32_t main(){
	int tc; cin >> tc;
	for(int ntc =1; ntc <= tc; ntc++){
		int r, b, d; cin >> r >> b >> d;
		if(r == b) cout << "YES\n";
		else if(r > b){
			if(ceil((double) r / b) - 1 <= d)
				cout << "YES\n";
			else cout << "NO\n";
		}
		else if(b > r){
			if(ceil((double) b / r) - 1 <= d)
				cout << "YES\n";
			else cout << "NO\n";
		}
	}
}