#include <bits/stdc++.h>
using namespace std;
using li = long int;
using lli = long long int;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int _;
  cin >> _;
  while (_--) {
    double h, c, t;
    cin >> h >> c >> t;
    if (t <= (h + c) / 2) {
      cout << 2 << "\n";
      continue;
    }
    if (t >= h) {
      cout << 1 << "\n";
      continue;
    }
    lli l = 0, r = 1e15, mid, ans;
    while (l <= r) {
      mid = l + (r - l) / 2;
      double temp = (mid * (h + c) + h) / (mid * 2 + 1);
      if (temp < t) {
        r = mid - 1;
      } else {
        ans = mid;
        l = mid + 1;
      }
    }
    auto temp = (ans * (h + c) + h) / (ans * 2 + 1);
    auto temp1 = ((ans + 1) * (h + c) + h) / ((ans + 1) * 2 + 1);
    if (abs(t - temp) <= abs(t - temp1)) {
      cout << ans * 2 + 1 << "\n";
    } else {
      cout << ans * 2 + 3 << "\n";
    }
  }
}
