#include <bits/stdc++.h>
using namespace std;
inline long long ceil(long long a, long long b) { return (a + b - 1) / b; }
long double h, c, tb;
long double calc(long double x) {
  long double res = (x + 1) * h + x * c;
  res /= (2 * x + 1);
  res = abs(res - tb);
  return res;
}
void func() {
  cin >> h >> c >> tb;
  if (tb == h) {
    cout << "1\n";
    return;
  }
  long double pp = (h + c) / 2;
  if (tb <= pp) {
    cout << "2\n";
    return;
  } else {
    long long tt = (h - tb) / (2 * tb - h - c);
    long double chk1 = abs((h + c) / 2 - tb);
    long long x = max(tt, (long long)0);
    long long y = max(x - 1, (long long)0);
    long long z = max(x + 1, (long long)0);
    long double xx = calc((long double)x);
    long double yy = calc((long double)y);
    long double zz = calc((long double)z);
    if (min(min(xx, yy), zz) >= chk1) {
      cout << "2\n";
      return;
    }
    if (yy <= min(xx, zz)) {
      cout << 2 * y + 1 << "\n";
      return;
    }
    if (xx <= zz) {
      cout << 2 * x + 1 << "\n";
      return;
    }
    cout << 2 * z + 1 << "\n";
  }
}
int main() {
  {
    ios ::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
  }
  long long ntc = 1;
  cin >> ntc;
  for (long long i = 1; i < ntc + 1; i++) {
    func();
  }
  return 0;
}
