#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long tt;
  cin >> tt;
  while (tt--) {
    float h, c, t, tot, x2;
    float d1 = 0.0, d2 = 0.0, a = 0.0, min = 100000000, diff = 0;
    long long i;
    cin >> h >> c >> t;
    a = (h + c) / 2;
    if (t <= a)
      tot = 2;
    else {
      long long x1 = floor((h - t) / (t - a));
      for (i = x1; i <= x1 + 5; i++) {
        if (i % 2 == 1) {
          diff = abs(((i - 1) * a + h) / i - t);
          if (diff < min) {
            min = diff;
            tot = i;
          }
        }
      }
    }
    cout << tot << "\n";
  }
}
