#include <bits/stdc++.h>
using namespace std;
long long h, c, t;
double check(int cnt) {
  return ((double)cnt * (double)h + ((double)cnt - (double)1) * (double)c) /
         (2.0 * cnt - 1.0);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int tt;
  cin >> tt;
  while (tt--) {
    cin >> h >> c >> t;
    if (t == h)
      cout << "1\n";
    else if (t <= (c + h) / 2)
      cout << "2\n";
    else {
      int l = 1, r = 1e8, ans;
      while (l <= r) {
        int mid = (l + r) / 2;
        if (check(mid) >= ((double)t)) {
          ans = mid;
          l = mid + 1;
        } else
          r = mid - 1;
      }
      if (abs(check(ans) - t) <= abs(check(ans + 1) - t)) {
        cout << 2 * ans - 1 << "\n";
      } else
        cout << 2 * ans + 1 << "\n";
    }
  }
  return 0;
}
