#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long i, T, n;
  cin >> T;
  while (T--) {
    double h, c, t, ans;
    cin >> h >> c >> t;
    double res = h, freq = 1.0, diff = fabs(((h + c) / 2) - t);
    if (h == t) {
      cout << 1 << "\n";
      continue;
    }
    if ((h + c) / 2 >= t) {
      cout << 2 << "\n";
      continue;
    }
    freq = 1 + 2 * ceil((t - h) / (h + c - 2 * t));
    double freq2 = freq - 2;
    if (fabs((h + (h + c) * ((freq - 1) / 2)) / (freq)-t) <
        fabs((h + (h + c) * ((freq2 - 1) / 2)) / (freq2)-t)) {
      if (diff < fabs((h + (h + c) * (freq / 2)) / (1 + freq) - t)) {
        cout << 2 << "\n";
      } else {
        cout << freq << "\n";
      }
    } else {
      if (diff < fabs((h + (h + c) * (freq2 / 2)) / (1 + freq2) - t)) {
        cout << 2 << "\n";
      } else {
        cout << freq2 << "\n";
      }
    }
  }
  return 0;
}
