#include <bits/stdc++.h>
using namespace std;
long long h, c, t, lo, hi;
long double cal(long long mid) {
  long double a = 1.0 * h * (mid + 1) + 1.0 * c * mid;
  a /= 2.0 * mid + 1;
  return a;
}
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    cin >> h >> c >> t;
    if (h == t)
      cout << 1 << '\n';
    else if (2 * t <= h + c)
      cout << 2 << '\n';
    else {
      lo = 0;
      hi = 1e12 + 1;
      while (lo + 1 < hi) {
        long long mid = (lo + hi) / 2;
        if (1.0 * t > cal(mid))
          hi = mid;
        else
          lo = mid;
      }
      if (cal(lo) - 1.0 * t > 1.0 * t - cal(hi)) {
        cout << 2 * hi + 1 << '\n';
      } else
        cout << 2 * lo + 1 << '\n';
    }
  }
}
