#include <bits/stdc++.h>
using namespace std;
long long z[300005];
signed main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long h, c, t;
    cin >> h >> c >> t;
    if (h + c >= 2 * t) {
      cout << 2 << endl;
    } else if (h == t)
      cout << 1 << endl;
    else {
      long long l = 1;
      long long r = 1000005;
      long long mm = 0;
      double mi = 100000000.0;
      while (l <= r) {
        long long m = (l + r) / 2;
        double xx = (1.0 * m * h + 1.0 * (m - 1) * c) / (1.0 * (2 * m - 1));
        if (xx > t) {
          l = m + 1;
        } else {
          r = m - 1;
        }
        if (fabs(xx - t) <= mi) {
          mi = fabs(xx - t);
          mm = m;
        }
        xx = (1.0 * l * h + 1.0 * (l - 1) * c) / (1.0 * (2 * l - 1));
        if (fabs(xx - t) <= mi) {
          mi = fabs(xx - t);
          mm = l;
        }
        xx = (1.0 * r * h + 1.0 * (r - 1) * c) / (1.0 * (2 * r - 1));
        if (fabs(xx - t) <= mi) {
          mi = fabs(xx - t);
          mm = r;
        }
      }
      cout << mm * 2 - 1 << endl;
    }
  }
}
