#include <bits/stdc++.h>
using namespace std;
long long T, h, c, t;
signed main() {
  cin >> T;
  while (T--) {
    cin >> h >> c >> t;
    if (t + t <= h + c) {
      cout << 2 << endl;
      continue;
    }
    if (h <= t) {
      cout << 1 << endl;
      continue;
    }
    double ans = (h - t) / (t + t - h - c);
    cout << ((t + t >= (ans * ((double)c + h) + h) / (2 * ans + 1) +
                           ((ans + 1) * ((double)c + h) + h) / (2 * ans + 3))
                 ? 2ll * (long long)ans + 1ll
                 : 2ll * (long long)ans + 3ll)
         << endl;
  }
}
