#include <iostream>
#include <algorithm>
using namespace std;
typedef long long ll;
int n;
int main() {
	cin >> n;
	while(n--) {
		ll a, b, c;
		cin >> a >> b >> c;
		if(c == 0) {
			if(a == b) cout << "YES" << endl;
			else cout << "NO" << endl;
		}
		else {
			ll ans = (c+1)*min(a,b);
			if(ans >= max(a,b)) cout << "YES" << endl;
			else cout << "NO" << endl;
		}
	}
	return 0;
} 