#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tt;
  cin >> tt;
label:
  while (tt--) {
    long long h, c, t;
    cin >> h >> c >> t;
    if (h == t) {
      cout << 1 << "\n";
      goto label;
    }
    long long x;
    long double answer;
    long long ans;
    if (double(h - t) <= abs((h + c) / 2.0 - (t * 1.0))) {
      answer = double(h - t);
      ans = 1;
    } else {
      answer = abs((h + c) / 2.0 - (t * 1.0));
      ans = 2;
    }
    if ((h + c) == 2 * t) {
      cout << 2 << "\n";
      goto label;
    }
    x = (abs)((t - c) / (2 * t - (h + c)));
    long long y = x + 1;
    if (x == 0) x = 2;
    if (abs(((x * 1.0 * (h + c) - c) / (2 * x - 1) * 1.0) - t) >
        abs(((y * 1.0 * (h + c) - c) / (2 * y - 1) * 1.0) - t)) {
      if (abs(((y * 1.0 * (h + c) - c) / (2 * y - 1) * 1.0) - t) < answer)
        cout << 2 * y - 1 << "\n";
      else
        cout << ans << "\n";
    } else if (abs(((x * 1.0 * (h + c) - c) / (2 * x - 1) * 1.0) - t) <
               answer) {
      cout << 2 * x - 1 << "\n";
    } else
      cout << ans << "\n";
  }
}
