#include <bits/stdc++.h>
using namespace std;
int T;
long long sol, k1, k2;
double h, c, t, best, diff, k, t1, t2, pola;
int main() {
  cin >> T;
  while (T--) {
    cin >> h >> c >> t;
    pola = (h + c) / 2;
    if (t >= h) {
      cout << "1" << endl;
      continue;
    } else if (t <= pola) {
      cout << "2" << endl;
      continue;
    }
    sol = 1;
    best = h;
    diff = abs(h - t);
    if (abs((h + c) / 2 - t) < diff) {
      sol = 2;
      best = (h + c) / 2;
      diff = abs(best - t);
    }
    k = (t - h) / (h + c - 2 * t);
    k1 = floor(k);
    k2 = ceil(k);
    t1 = ((k1 + 1) * h + k1 * c) / (2 * k1 + 1);
    t2 = ((k2 + 1) * h + k2 * c) / (2 * k2 + 1);
    if (abs(t1 - t) < diff) {
      diff = abs(t1 - t);
      sol = k1 * 2 + 1;
    }
    if (abs(t2 - t) < diff) {
      diff = abs(t2 - t);
      sol = k2 * 2 + 1;
    }
    cout << sol << endl;
  }
}
