#pragma GCC optimize(2)

#include<bits/stdc++.h>
//#define FAST ios::sync_with_stdio(false); cin.tie(0);
#define int long long

using namespace std;

signed main()
{
	//FAST

	int T;
	cin >> T;
	while(T--) {
		int r, b, d;
		scanf("%lld%lld%lld", &r, &b, &d); 
		if(r > b) swap(r, b);	//r <= b
		if(r * (d + 1) < b) {
			printf("NO\n");
		} else {
			printf("YES\n");
		}
	}

	return 0;
}

