#include <bits/stdc++.h>
using namespace std;
long long int MOD = 1000000007;
long long int MX = 400000000000000000;
long long int T, t, h, c;
int main() {
  ios::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  cin >> T;
  while (T--) {
    cin >> h >> c >> t;
    if (2 * t == h + c) {
      cout << 2 << endl;
    } else {
      long double hh = h;
      long double cc = c;
      long double tt = t;
      long double x = (hh - tt) / (2.0 * tt - hh - cc);
      long long int x1 = floor(x);
      long long int x2 = ceil(x);
      if (t >= h)
        cout << 1 << endl;
      else if (2 * t <= (h + c)) {
        cout << 2 << endl;
      } else {
        if (abs((2 * x2 + 1) * ((x1 + 1) * h + x1 * c - t * (2 * x1 + 1))) <=
            abs((2 * x1 + 1) * (t * (2 * x2 + 1) - (x2 + 1) * h - x2 * c))) {
          cout << 2 * x1 + 1 << endl;
        } else {
          cout << 2 * x2 + 1 << endl;
        }
      }
    }
  }
  return 0;
}
