#include <bits/stdc++.h>
#define FASTIO                 \
  ios::sync_with_stdio(false); \
  cin.tie(0);                  \
  cout.tie(0);
#define FILEIO(x, y, z)    \
  freopen(x, "r", stdin);  \
  freopen(y, "w", stdout); \
  freopen(z, "w", stderr);
#define deb(x) cerr << #x << " " << x << endl;
#define print(x) cout<<x<<" ";
#define printn(x) cout<<x<<endl;
typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ld;
using namespace std;

template<typename... T>
void read(T&... args) {
	((cin >> args), ...);
}

template<typename... T>
void write(T&&... args) {
	((cout << args << " "), ...);
}

template<typename T>
void printList(std::initializer_list<T> text)
{
	for (const auto & value : text)
		std::cout << value << " ";
}

template<typename T>
void printVector(std::vector<T> text)
{
	for (const auto & value : text)
		std::cout << value << " ";
}

const int N = 2e5 + 5;
const int M = int(1e2) + 1;
const int modu = int(1e9) + 7;

int main() {
	FASTIO
	int t, x, y, d;
	cin >> t;
	while (t--)
	{
		read(x, y, d);
		int ans;
		if (x < y) swap(x, y);
		ans = x / y;
		if (x % y != 0) ans++;
		ans--;
		// deb(ans)
		if (ans <= d)
		{
			cout << "YES\n";
		}
		else {
			cout << "NO\n";
		}
	}
	return 0;
}