#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long tst, h, c, t;
  cin >> tst;
  while (tst--) {
    cin >> h >> c >> t;
    if (t <= (h + c) / 2)
      cout << 2 << '\n';
    else {
      long long t1 = (long long)ceil((h - t) / ((2 * t - h - c) * 1.0));
      float d1 = abs((h * t1 + c * (t1 - 1)) / ((2 * t1 - 1) * 1.0) - t),
            d2 = abs((h * (t1 + 1) + c * t1) / ((2 * t1 + 1) * 1.0) - t);
      if (d1 <= d2)
        cout << 2 * t1 - 1 << '\n';
      else
        cout << 2 * t1 + 1 << '\n';
    }
  }
  return 0;
}
