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

int main()
{
   int t;cin>>t;
   while(t--)
   {
       long long int a,b,d;cin>>a>>b>>d;
       if(a>b)
       {
           int temp=a;
           a=b;
           b=temp;
       }
       
       if(a*(d+1)<b && abs(a-b)>d)
       cout<<"NO\n";
       else cout<<"Yes\n";
   }
   
   return 0;
}