#include <bits/stdc++.h>
using namespace std;
class Time {
  chrono::high_resolution_clock::time_point start;

 public:
  Time() { start = chrono::high_resolution_clock::now(); }
  ~Time() {
    cout << "\nTime: "
         << chrono::duration_cast<chrono::duration<double>>(
                chrono::high_resolution_clock::now() - start)
                .count()
         << "s\n";
  }
};
void fIO() {
  freopen("output.txt", "w", stdout);
  freopen("input.txt", "r", stdin);
}
void testCase() {
  long long int h, c, t;
  cin >> h >> c >> t;
  if (t <= (h + c) / 2) {
    cout << "2\n";
    return;
  }
  long long int k = (h - t) / (2 * t - h - c);
  if (abs(k * c + (k + 1) * h - t * (2 * k + 1)) * (2 * k + 3) <=
      abs((k + 1) * c + (k + 2) * h - t * (2 * k + 3)) * (2 * k + 1)) {
    cout << 2 * k + 1 << '\n';
  } else {
    cout << 2 * k + 3 << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t = 1;
  cin >> t;
  for (; t; --t) {
    testCase();
  }
  return 0;
}
