#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1000000007;
long long int T, t, n, m, h, c, ini, fin;
double can, aux, can2;
int main() {
  cin >> T;
  while (T--) {
    cin >> h >> c >> t;
    aux = t;
    if (t >= h)
      cout << 1 << "\n";
    else {
      if (t <= ((h + c) / 2))
        cout << 2 << "\n";
      else {
        ini = 2;
        fin = 10000000;
        while (ini != fin) {
          m = ini + fin;
          m /= 2;
          can = (h * m) + (c * (m - 1));
          can /= double(m + m - 1);
          if (can <= aux)
            fin = m;
          else
            ini = m + 1;
        }
        can = (h * fin) + (c * (fin - 1));
        can /= double(fin + fin - 1);
        can2 = (h * (fin - 1)) + (c * (fin - 2));
        can2 /= double(fin + fin - 3);
        if (abs(can - aux) < abs(can2 - aux))
          cout << fin + fin - 1 << "\n";
        else
          cout << fin + fin - 3 << "\n";
      }
    }
  }
}
