func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int t;     cin >> t;     for (int q = 0; q < t; q++) {       int n;       cin >> n;       vector<int> a(n);       for (int i = 0; i < n; i++) cin >> a[i];       int moves = 0;       int max_size = 0;       int alice = 0, bob = 0;       while (a.size() != 0) {         moves++;         int curr_size = 0;         if (moves % 2 == 1) {           while (curr_size <= max_size) {             curr_size += a[0];             alice += a[0];             a.erase(a.begin());             if (a.size() == 0) break;           }         }         if (moves % 2 == 0) {           while (curr_size <= max_size) {             curr_size += a[(int)a.size() - 1];             bob += a[(int)a.size() - 1];             a.erase(a.begin() + (int)a.size() - 1);             if (a.size() == 0) break;           }         }         max_size = max(max_size, curr_size);       }       cout << moves <<     << alice <<     << bob <<   n ;     }   }   