func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MAX = 3005;   int a[MAX], b[MAX], c[MAX], dp[MAX][2];   int main() {     int n;     cin >> n;     for (int i = 1; i <= n; i++) cin >> a[i];     for (int i = 1; i <= n; i++) cin >> b[i];     for (int i = 1; i <= n; i++) cin >> c[i];     dp[1][0] = a[1];     dp[1][1] = b[1];     for (int i = 2; i <= n; i++) {       dp[i][0] = dp[i - 1][0] + b[i];       dp[i][1] = dp[i - 1][0] + c[i];       dp[i][0] = max(dp[i][0], dp[i - 1][1] + a[i]);       dp[i][1] = max(dp[i][1], dp[i - 1][1] + b[i]);     }     cout << dp[n][0] << endl;   }   