func_code_string: #include <bits/stdc++.h>   using namespace std;   const int maxn = 100001;   long long h, c, temp;   long double f(long long m) {     long double r = 1.0 * (m * h + (m)*c) / (2 * m);     return (abs(r - temp));   }   long double f12(long long m) {     long double r = 1.0 * (m * h + (m - 1) * c) / (2 * m - 1);     return (abs(r - temp));   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int t;     t = 1;     cin >> t;     while (t--) {       long long i, j, k;       cin >> h >> c >> temp;       long long l = 1;       long long r = 1000000000;       while (r - l > 2) {         long long m1 = (l * 2 + r) / 3;         long long m2 = (l + 2 * r) / 3;         if (f(m1) > f(m2))           l = m1;         else           r = m2;       }       long double ans = f(2);       j = 2;       for (i = l; i <= r; i++) {         if (f(i) < ans) {           j = 2 * i;           ans = f(i);         }       }       l = 1;       r = 1000000000;       while (r - l > 2) {         long long m1 = (l * 2 + r) / 3;         long long m2 = (l + 2 * r) / 3;         if (f12(m1) > f12(m2))           l = m1;         else           r = m2;       }       for (i = l; i <= r; i++) {         if (f12(i) < ans) {           j = 2 * i - 1;           ans = f12(i);         }       }       cout << j <<   n ;     }   }   