#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long a, b, r;
  cin >> a >> b >> r;
  if (a == r) {
    cout << "1" << endl;
  } else {
    double avg = (a + b) / double(2);
    if (r <= avg) {
      cout << "2" << endl;
    } else {
      long long val1 = ceil(double(abs(r - a)) / abs(a + b - 2 * r));
      long long val2 = (abs(r - a)) / abs(a + b - 2 * r);
      double val11 = (double)(val1 * (a + b) + a) / (2 * val1 + 1);
      double val22 = (double)(val2 * (a + b) + a) / (2 * val2 + 1);
      if (abs(r - val11) < abs(r - val22)) {
        cout << 2 * val1 + 1 << endl;
      } else {
        cout << 2 * val2 + 1 << endl;
      }
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
}
