#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin>>N; vector A(N); for (int i=0;i>A[i]; } vector DP(300001); int x; int xr; for (int a=0;a LIST; for (int i=1;i