#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long t;
  cin >> t;
  while (t--) {
    long long c, h;
    cin >> h >> c;
    long long y;
    cin >> y;
    if (y >= h) {
      cout << 1 << endl;
    } else if (2 * y <= (c + h)) {
      cout << 2 << endl;
    } else {
      long long a = (2 * y) - (c + h);
      long long b = h - y;
      long long k = b / a;
      double d = k * (h + c) + h;
      double e = d + (h + c);
      d /= (2 * k + 1);
      e /= (2 * (k + 1) + 1);
      if (fabs(d - y) > fabs(e - y)) k++;
      cout << 2 * k + 1 << endl;
    }
  }
}
