#include <bits/stdc++.h>
using namespace std;
const long long int INF = (long long int)1e18;
const long long int MOD = (long long int)1e9 + 7;
const long long int maxn = (long long int)2e5 + 10, L = 23;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int T;
  cin >> T;
  while (T--) {
    long double h, c, t;
    cin >> h >> c >> t;
    long long int ans = 1;
    double lst = 1e18;
    if (abs(h - t) <= abs((h + c) / 2.0 - t)) {
      ans = 1, lst = abs(h - t);
    } else {
      ans = 2, lst = abs((h + c) / 2.0 - t);
    }
    long double delta = t - (h + c) / 2.0;
    long long int inx = (h - c) / delta / 2.0;
    if (inx % 2 == 0) --inx;
    for (long long int i = max(3ll, inx - 1000); i <= inx + 1000; i += 2) {
      long double now = (h + c) / 2.0 + (h - c) / i / 2.0;
      if (lst > abs(now - t)) {
        lst = abs(now - t);
        ans = i;
      }
    }
    cout << ans << endl;
  }
  return 0;
}
