func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     int N;     cin >> N;     int c;     cin >> c;     int A[N];     A[0] = 0;     int B[N];     B[0] = 0;     for (int i = 1; i < N; i++) cin >> A[i];     for (int i = 1; i < N; i++) cin >> B[i];     int f[N][2];     f[0][0] = 0;     f[0][1] = c;     for (int j = 1; j < N; j++) {       f[j][0] = min(f[j - 1][0], f[j - 1][1]) + A[j];       f[j][1] = min(f[j - 1][0] + c, f[j - 1][1]) + B[j];     }     for (int i = 0; i < N - 1; i++) cout << min(f[i][0], f[i][1]) <<    ;     cout << min(f[N - 1][0], f[N - 1][1]) << endl;     return 0;   }   