#include <bits/stdc++.h>
using namespace std;
double h, c, t;
inline double avg(long long m) { return (m * h + (m - 1) * c) / (2 * m - 1); }
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long tc;
  cin >> tc;
  while (tc--) {
    cin >> h >> c >> t;
    if (t == h) {
      cout << "1\n";
      continue;
    }
    if (t <= (h + c) / 2) {
      cout << "2\n";
      continue;
    }
    long long l = 1, r = 1e9, m;
    while (l <= r) {
      m = (l + r) / 2;
      double temp = avg(m);
      if (temp > t)
        l = m + 1;
      else
        r = m - 1;
    }
    double close = 1E10;
    long long ans = l;
    for (long long j = max(0LL, l - 5); j <= l + 5; j++) {
      if (abs(avg(j) - t) < close) {
        close = abs(avg(j) - t);
        ans = j;
      }
    }
    cout << 2 * ans - 1 << '\n';
  }
  return 0;
}
