#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 == t) {
      cout << 1 << "\n";
    } else if (2 * t <= h + c) {
      cout << 2 << "\n";
    } else {
      int x = (c - t) / (h + c - (2 * t));
      int y = x + 1;
      double a1 = ((h * x) + c * (x - 1)) / (1.0 * (2 * x - 1));
      double a2 = ((h * y) + c * (y - 1)) / (1.0 * (2 * y - 1));
      if (abs(t - a1) <= abs(t - a2)) {
        cout << 2 * x - 1 << "\n";
      } else {
        cout << 2 * y - 1 << "\n";
      }
    }
  }
  return 0;
}
