#include using namespace std; int main(){ int n; cin>>n; int A[n]; for(int i=0; i>A[i]; } int memo=A[0]+A[n-1]; for(int i=0; i