#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long h, c, t, cnt, ans;
    cin >> h >> c >> t;
    if (h + c >= t * 2) {
      cout << 2 << '\n';
      continue;
    }
    cnt = (t - c) / (t * 2 - h - c);
    int x = cnt, y = cnt + 1;
    double m = (x * h + (x - 1) * c) * 1.0 / (2 * x - 1) - t * 1.0;
    double n = (y * h + (y - 1) * c) * 1.0 / (2 * y - 1) - t * 1.0;
    if (abs(m) > abs(n))
      ans = y;
    else
      ans = x;
    cout << ans * 2 - 1 << '\n';
  }
  return 0;
}
