#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  double h, c, t;
  while (n--) {
    long long ans = 0;
    cin >> h >> c >> t;
    if (t <= ((h + c) / 2.0))
      cout << "2\n";
    else {
      long long k = ((h - t) / ((2.0 * t) - h - c));
      double ck1 =
          abs(((double)k * (h + c) + h) - t * (2.0 * (double)k + 1.0)) *
          (2.0 * (double)k + 3.0);
      double ck2 =
          abs((((double)k + 1) * (h + c) + h) - t * (2.0 * (double)k + 3.0)) *
          (2.0 * (double)k + 1.0);
      if (ck1 <= ck2) {
        cout << 2 * k + 1 << "\n";
      } else {
        cout << 2 * (k + 1) + 1 << endl;
      }
    }
  }
  return 0;
}
