#include <bits/stdc++.h>
using namespace std;
const long long INF = 9e18;
const long long MOD = 1e9 + 7;
const long long mod = 998244353;
void fileio() {}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  fileio();
  long long tc;
  cin >> tc;
  while (tc--) {
    long long h, c, t;
    cin >> h >> c >> t;
    if (t <= (h + c) / 2) {
      cout << 2 << endl;
      continue;
    }
    long long k1 = (t - c) / (2 * t - h - c);
    long long k2 = k1 + 1;
    double t1, t2;
    double d1, d2;
    t1 = k1 * h + (k1 - 1) * c;
    t1 /= (2 * k1 - 1);
    t2 = k2 * h + (k2 - 1) * c;
    t2 /= (2 * k2 - 1);
    d1 = abs(t1 - t);
    d2 = abs(t2 - t);
    if (d1 <= d2)
      cout << 2 * k1 - 1 << endl;
    else
      cout << 2 * k2 - 1 << endl;
  }
}
