#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long h, c, t;
    cin >> h >> c >> t;
    if (t == h) {
      cout << "1" << '\n';
      continue;
    }
    if (2 * t <= h + c) {
      cout << "2" << '\n';
      continue;
    }
    if (2 * t > h + c) {
      long long ic = 0;
      ic = ceil(1.0 * (h - t) / (2 * t - h - c));
      long double x = 1.0 * ((ic - 1) * (h + c) + h) / (2 * (ic - 1) + 1) - t;
      long double y = 1.0 * t - 1.0 * (ic * (h + c) + h) / (2 * (ic) + 1);
      cout << (x <= y ? 2 * (ic - 1) + 1 : 2 * (ic) + 1);
    }
    cout << '\n';
  }
  cerr << endl
       << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC
       << "ms\n";
  return 0;
}
