func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     vector<pair<unsigned long long, unsigned long long> > v;     unsigned long long target;     cin >> target;     unsigned long long base_l = 1, base_r = target + 1;     for (unsigned long long n = 1; n * (n + 1) * (2 * n + 1) <= 6 * target; n++) {       unsigned long long l = base_l, r = base_r;       unsigned long long base_n1 = n * (n + 1) * (2 * n + 1),                          base_n2 = 3 * n * (n + 1);       while (r - l > 1) {         unsigned long long mid = (r + l) / 2;         if (base_n1 + (mid - n) * base_n2 <= 6 * target)           l = mid;         else           r = mid;       }       base_r = r;       if (base_n1 + (l - n) * base_n2 == 6 * target) v.push_back({n, l});     }     cout << 2 * v.size() - (v.back().first != v.back().second ? 0 : 1) <<   n ;     for (auto p : v) cout << p.first <<     << p.second <<   n ;     for (int i = v.size() - 1; i >= 0; i--) {       auto p = v[i];       unsigned long long a = p.first, b = p.second;       if (a != b) cout << b <<     << a <<   n ;     }     return 0;   }   