E. Sleeping Schedule. Codeforces Round #627 (Div. 3)
又是一个div3的简单dp题意给个链接自行体会http://codeforces.com/problemset/problem/1324/E代码#includeusingnamespacestd;intdp[2005][2005];inta[2005];intmain(){intn,h,l,r;cin>>n>>h>>l>>r;for(inti=1;i>a[i];}memset(dp,-1,size