#include <bits/stdc++.h>
using namespace std;
int main() {
    int T;
  cin >> T;
  while (T--) {
    int r, b, d;
    cin >> r >> b >> d;
    if (r < b) swap(r, b);

    if (((r % b == 0) && abs(r / b - 1) <= d) || ((r % b) && abs(r / b) <= d))
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}