#include <bits/stdc++.h>
using namespace std;
const long long logN = 20;
const long long M = 1000000007;
const long long INF = 1e18;
void solve() {
  long long h, c, t;
  cin >> h >> c >> t;
  if (h == t)
    cout << 1;
  else if (2 * t <= (h + c))
    cout << 2;
  else {
    long double p = (long long)(h - t) / (2 * t - h - c);
    long double p1 = (long double)(h + (h + c) * p) / (2 * p + 1);
    long long pp = p + 1;
    long double p2 = (long double)(h + (h + c) * pp) / (2 * pp + 1);
    if (abs((long double)t - p1) <= abs((long double)t - p2))
      cout << 2 * p + 1;
    else
      cout << 2 * pp + 1;
  }
  cout << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) solve();
}
