func_code_string: #include <bits/stdc++.h>   using namespace std;   int gcd(int a, int b) {     if (a == 0) return b;     return gcd(b % a, a);   }   int lcm(int a, int b) { return (a * b) / gcd(a, b); }   int fact(int n) {     if (n == 0 || n == 1)       return 1;     else       return n * fact(n - 1);   }   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int t;     cin >> t;     while (t--) {       int n, a = 0, b = 0, l1 = 0, l2 = 0, c = 0, k = 0;       cin >> n;       deque<int> q;       for (int i = 0, x; i < n; i++) {         cin >> x;         q.push_back(x);       }       while (!q.empty()) {         while (l1 <= l2 && !q.empty()) {           a += q.front();           l1 += q.front();           q.pop_front();           k = 1;         }         c += k;         k = l2 = 0;         while (l2 <= l1 && !q.empty()) {           b += q.back();           l2 += q.back();           q.pop_back();           k = 1;         }         c += k;         k = l1 = 0;       }       cout << c <<     << a <<     << b << endl;     }     return 0;   }   