#include <bits/stdc++.h>
using namespace std;
int main() {
  int test;
  scanf("%d", &test);
  while (test--) {
    float h, c, t;
    scanf("%f %f %f", &h, &c, &t);
    if (h == t) {
      printf("1\n");
    } else if (2 * t <= h + c) {
      printf("2\n");
    } else {
      int x = (t - c) / (2 * t - c - h);
      int y = x + 1;
      float temp1, temp2;
      temp1 = (h * x + c * (x - 1)) / (2 * x - 1);
      temp2 = (h * y + c * (y - 1)) / (2 * y - 1);
      float diff1, diff2;
      diff1 = abs(temp1 - t);
      diff2 = abs(temp2 - t);
      if (diff1 <= diff2) {
        printf("%d\n", 2 * x - 1);
      } else {
        printf("%d\n", 2 * y - 1);
      }
    }
  }
}
