#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    double h, c, t;
    cin >> h >> c >> t;
    if ((h + c) / 2 >= t)
      cout << "2" << endl;
    else {
      int a = (t - c) / (2 * t - h - c);
      double A = ((h + c) * a - c) / (2 * a - 1) - t;
      double B = ((h + c) * a + h) / (2 * a + 1) - t;
      if (abs(A) > abs(B))
        cout << 2 * a + 1 << endl;
      else
        cout << 2 * a - 1 << endl;
    }
  }
}
