【題解】hdu5693 D Game 區間DP

題目鏈接 區間DP好題,把區間DP的基本操作都用上了。(狀態轉移方程很多,見代碼吧) #include<cstdio> #include<algorithm> #include<cstring> #include<map> using namespace std; const int N=310; int t,n,m,a[N],d,dp[N][N],f[N]; bool can[N][N]; ma
相關文章
相關標籤/搜索