#include <bits/stdc++.h>
using namespace std;
template <typename T>
void write(vector<T> &a) {
  for (auto it = a.begin(); it != a.end(); it++) cout << *it << " ";
  cout << "\n";
}
void random(long long int nMin, long long int nMax, long long int n) {
  srand(time(0));
  for (long long int i = 0; i < n; i++) {
    double var =
        nMin + (long long int)((double)rand() / ((double)RAND_MAX + 1) *
                               (nMax - nMin + 1));
    cout << var << " ";
  }
  cout << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout << setprecision(15);
  {
    long long int T;
    cin >> T;
    while (T--) {
      double h, c, t;
      cin >> h >> c >> t;
      double mean = (h + c) / 2;
      if (t >= h) {
        cout << 1 << "\n";
        continue;
      }
      if (t <= mean) {
        cout << 2 << "\n";
        continue;
      }
      double total, count, minDiff, avg, resCount;
      minDiff = abs(h - t);
      resCount = 1;
      avg = LLONG_MAX;
      if (abs(mean - t) < minDiff) {
        resCount = 2;
        minDiff = abs(mean - t);
      }
      long long int x = (c - t) / (h + c - 2 * t);
      double bef = (x * h + x * c - c) / (2 * x - 1);
      x++;
      double after = (x * h + x * c - c) / (2 * x - 1);
      bef = abs(bef - t);
      after = abs(after - t);
      if (bef <= after) {
        cout << 2 * (x - 1) - 1 << "\n";
      } else
        cout << 2 * x - 1 << "\n";
    }
  }
  return 0;
}
