func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     long long q;     cin >> q;     while (q--) {       long long a, b, m;       cin >> a >> b >> m;       if (a == b) {         cout << 1 <<     << a <<   n ;         continue;       }       bool ok = 0;       long long dif = 0;       long long p = a, i = 1ll;       while (p <= b) {         if (b - p <= ((1ll << (i - 1ll)) * m) && b - p >= (1ll << (i - 1ll))) {           ok = 1;           dif = b - p - (1ll << (i - 1ll));           break;         }         i++;         p = (p * 2ll);       }       if (!ok) {         cout << (-1) <<   n ;         continue;       }       long long s1 = min(dif, m - 1);       dif -= s1;       cout << i + 1 <<    ;       long long res[55];       res[0] = a;       for (long long j = 1ll; j < i; j++) {         long long sss = 0;         for (long long u = 0; u < j; u++) sss += res[u];         sss += min((dif / (1ll << (i - j - 1ll))), m - 1ll);         dif -= min((dif / (1ll << (i - j - 1ll))), m - 1ll) *                (long long)((1ll << (i - j - 1ll)));         sss++;         res[j] = sss;       }       long long sss = 0;       for (long long u = 0; u < i; u++) sss += res[u];       sss += s1;       sss++;       res[i] = sss;       for (long long j = 0; j <= i; j++) cout << res[j] <<    ;       cout <<   n ;     }     return 0;   }   