杭电ACM 2084 数塔 (动态规划初步)

http://acm.hdu.edu.cn/showproblem.php?pid=2084 php 用递归的方法实现动态规划,状态转移方程。ios 效率低下,重复计算了好多!数组 //不能AC #include <iostream> using namespace std; int a[110][110]; int d(int i,int j,int n){ return a[i][j]+(
相关文章
相关标签/搜索