#include<bits/stdc++.h>
using namespace std;
#define int long long
int32_t main(){
    int t;
    cin>>t;
    while(t--){
        int r,b,d;
        cin>>r>>b>>d;
        if(r==b){
            cout<<"YES"<<endl;
        }else if(r>=b){
            if(b*(1+d)>=r){
                cout<<"YES"<<endl;
            }else{
                cout<<"NO"<<endl;
            }
        }else{
            if(r*(1+d)>=b){
                cout<<"YES"<<endl;
            }else{
                cout<<"NO"<<endl;
            }
        }
    }
}
