题解 1177: 三角形

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

三角形c++动态规划

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>……

三角形 (C++代码)

摘要:解题思路:动态规划,贪心不能得到最大解注意事项:三维数组提高解题效率参考代码:#include<bits/stdc++.h> #define N 50  using namespace std; ……

一维状态压缩

摘要:解题思路:1、自下而上求解(自上而下求解很难搞,用递归很容易超时)。2、注意状态转移方程:dp[t][t1]=dp[t][t1]+Max(dp[t+1][t1+1],dp[t][t1]),这个方程后面……