func_code_string: #include <bits/stdc++.h>   using namespace std;   int l[123], r[123];   int d[123];   int main() {     ios_base::sync_with_stdio(false);     int n;     cin >> n;     l[0] = 0;     for (int i = 1; i < n; ++i) {       int x;       cin >> x;       l[i] = l[i - 1] + x;     }     r[n - 1] = 0;     vector<int> a;     for (int i = 0; i < (int)n - 1; ++i) {       int x;       cin >> x;       a.push_back(x);     }     int k = n - 2;     for (int i = n - 2; i >= 0; --i) {       r[i] = r[i + 1] + a[k];       k--;     }     for (int i = 0; i < (int)n; ++i) cin >> d[i];     int res[123];     for (int i = 0; i < (int)n; ++i) res[i] = d[i] + l[i] + r[i];     sort(res, res + n);     cout << res[0] + res[1];     return 0;   }   