func_code_string: #include <bits/stdc++.h>   using namespace std;   long long A[100005 * 10];   long long B[100005 * 10];   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     cout.tie(NULL);     ;     long long tst = 1;     for (long long tt = 1; tt <= tst; tt++) {       long long n, a, mn = 1e12, m, res = 0;       cin >> m;       for (long long i = 1; i <= m; i++) cin >> a, mn = min(mn, a);       cin >> n;       for (long long i = 0; i < n; i++) cin >> A[i];       ;       sort(A, A + n, greater<long long>());       long long p1 = 0;       while (p1 < n) {         long long x = p1 + mn;         while (p1 < x) res += A[p1], p1++;         p1 += 2;       }       cout << res << endl;     }     return 0;   }   