#include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long int
#define fab(i,a,b) for(i=a;i<=b;i++)
#define fabr(i,a,b) for(i=b;i>=a;i--)
#define f(i,n) for(i=0;i<n;i++)
#define sc second
#define fr first
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define nl "\n"
#define ang 10000000000
using namespace std;

int main()
{
    FAST;
    ll t,i,m,z,u,v,ans,b,l,q,p,j,sum,d,n,a,x,y,k,w,h,r,c;
    t=1;
    char ch;
    string aa,bb;
    cin>>t;
    while(t--)
    {
      cin>>a>>c>>d;
      r=min(a,c);
      b=max(a,c);
      if(b%r==0)
      x=b/r;
      else
      x=b/r+1;
      //cout<<b<<" "<<r<<nl;
      //cout<<x<<nl;
      if(abs(x-1)>d)
      cout<<"NO"<<nl;
      else
      cout<<"YES"<<nl;
    }
	return 0;
}
