#include using namespace std; int big(int a,int b){ if(a> N; for(int i=0;i> V[i]; } for(int i=1;i<=N;i++){ dp[0][i]=big(dp[0][i-1],dp[1][i-1]); dp[1][i]=dp[0][i-1]+V[i-1]; } cout << big (dp[0][N],dp[1][N]) << endl; return 0; }