2019年3月21日

UVA - 10003 Cutting Sticks(动态规划)

摘要: #include #include using namespace std; const int maxn = 50 + 3; int l, n; int c[maxn]; int dp[maxn][maxn]; int vis[maxn][maxn]; int solve2(int i, int j) { if(i == j - 1) return 0; if(vis[i]... 阅读全文

posted @ 2019-03-21 21:10 nbsanshi 阅读(111) 评论(0) 推荐(0) 编辑

导航