#include<bits/stdc++.h>
using namespace std;

long long t, n, m, d;

template<typename T>
inline void read(T&x){
    x=0; char q; bool f=1;
    while(!isdigit(q = getchar()))  if(q == '-')    f = 0;
    while(isdigit(q)){
        x = (x<<1)+(x<<3)+(q^48);
        q = getchar();
    }
    x = f?x:-x;
}

template<typename T>
inline void write(T x){
    if(x<0){
        putchar('-');
        x = -x;
    }
    if(x>9) write(x/10);
    putchar(x%10+'0');
}

int main(){
	read(t);
	while(t--){
		read(n), read(m), read(d);
		int minn = min(n, m), maxn = max(n, m);
		if(minn*(d+1) >= maxn)	cout << "YES" << endl;
		else	cout << "NO" << endl;
	}
    return 0;
}
