#include <bits/stdc++.h>
using namespace std;
int T;
int h, c, t;
int main() {
  scanf("%d", &T);
  while (T--) {
    scanf("%d%d%d", &h, &c, &t);
    if (t * 2 <= (h + c))
      printf("%d\n", 2);
    else {
      long long lef = (h - t) / (2 * t - (h + c));
      double a1 = (1.0 * h * (lef + 1) + c * lef) / (2 * lef + 1);
      lef++;
      double a2 = (1.0 * h * (lef + 1) + c * lef) / (2 * lef + 1);
      if (abs(a1 - t) <= abs(a2 - t))
        printf("%lld\n", 2 * (lef - 1) + 1);
      else
        printf("%lld\n", 2 * lef + 1);
    }
  }
}
