#include <iostream>

using namespace std;

int main(){
    int t;
    cin>>t;
    while(t--){
        int r, b, d;
        cin>>r>>b>>d;
        int x=min(r,b);
        int y=max(r,b);
        if(y%x){
            if(y/x<=d)
                cout<<"YES"<<endl;
            else
                cout<<"NO"<<endl;
        }
        else
        {
            if(y/x-1<=d)
                cout<<"YES"<<endl;
            else
                cout<<"NO"<<endl;
        }
    }
}