#include <bits/stdc++.h>
using namespace std;
long long int MOD = 998244353;
long long int mod = 1e9 + 7;
long long int INF = 1e18;
long long int dx[] = {1, -1, 0, 0};
long long int dy[] = {0, 0, 1, -1};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t;
  cin >> t;
  while (t--) {
    double h, c, t;
    cin >> h >> c >> t;
    double av = (h + c) / 2;
    if (av >= t)
      cout << 2;
    else if (h <= t)
      cout << 1;
    else {
      double a = h - t;
      double b = 2 * t - (h + c);
      long long int d = a / b;
      long long int e = d + 1;
      long double ans1 = ((h + c) * d + h) / (2 * d + 1);
      long double ans2 = ((h + c) * e + h) / (2 * e + 1);
      long double error1 = abs(ans1 - t);
      long double error2 = abs(ans2 - t);
      if (error1 <= error2)
        cout << 2 * d + 1;
      else
        cout << 2 * e + 1;
    }
    cout << endl;
  }
  return 0;
}
