#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int h, c, t;
    cin >> h >> c >> t;
    long long res1 = 0, res2 = 0;
    if (h + c - 2 * t >= 0)
      cout << 2 << endl;
    else {
      int a = h - t;
      int b = 2 * t - c - h;
      int k = 2 * (a / b) + 1;
      res1 = abs(k / 2 * 1ll * c + (k + 1) / 2 * 1ll * h - t * 1ll * k);
      res2 = abs((k + 2) / 2 * 1ll * c + (k + 3) / 2 * 1ll * h -
                 t * 1ll * (k + 2));
      if (res1 * (k + 2) <= res2 * k)
        cout << k << endl;
      else
        cout << k + 2 << endl;
    }
  }
}
