#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N; FOR(i,N) cin>>V[i]; FOR(i,N) dp[i+1]=max(dp[i],((i>=1)?dp[i-1]:0)+V[i]); cout<