#include<iostream>
#include<algorithm>
#include<cstring>
#include<queue>
using namespace std;
typedef long long LL;

int main()
{
    int t;
    cin >> t;
    while(t--){
        int n,m,d;
        cin >>n >>m >>d;
        if(n>m) swap(n,m);
        if((LL)n*(1+d)>=m) cout <<"YES" <<endl;
        else cout << "NO" <<endl;
    }
    return 0;
}
