#include <bits/stdc++.h>
using namespace std;
const int N = 1005;
char g[N][N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long double h, c, t;
    cin >> h >> c >> t;
    if (t >= h) {
      cout << "1\n";
      continue;
    }
    if ((h + c) / 2 >= t) {
      cout << "2\n";
      continue;
    }
    int x = 0;
    x = (h - t) / (2 * t - h - c);
    long double curd = 100000000.0;
    int res = -1;
    for (int i = max(0, x - 50); i <= x + 50; ++i) {
      long double xx = (i + 1) * h + i * c;
      xx = 1.0 * xx / (2 * i + 1);
      xx = abs(xx - t);
      if (xx < curd) {
        curd = xx;
        res = i;
      }
    }
    cout << 2 * res + 1 << '\n';
  }
}
