摘要: 数字三角形 题意 算法思路 从倒数第二层向上,更新每层数的最大值,取决于其下一层的左右那个最大,一直更新知道最顶层,即可。 #include<bits/stdc++.h> using namespace std; int f[510][510]; int main() { int i,j,n; ci 阅读全文
posted @ 2021-02-21 11:54 清风紫雪 阅读(115) 评论(0) 推荐(1) 编辑