#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  double t, c, h;
  long long x, y;
  cin >> y;
  for (long long i = 0; i < y; i++) {
    cin >> h >> c >> t;
    x = 1 / (1 - 2 * (t - h) / (c - h));
    if (x < 0 || (c + h) == 2 * t) {
      cout << 2 << endl;
    } else {
      double m, n;
      if (x % 2 == 0) {
        m = x - 1;
        n = x + 1;
      } else {
        m = x;
        n = x + 2;
      }
      double p, q, r;
      if ((h + c) / 2 > t) {
        r = (h + c) / 2 - t;
      } else {
        r = t - (h + c) / 2;
      }
      p = ((h + (c - h) * (1 - 1 / m) / 2) - t);
      q = (t - (h + (c - h) * (1 - 1 / n) / 2));
      if (p > q) {
        cout << n << endl;
      } else {
        cout << m << endl;
      }
    }
  }
  return 0;
}
