题解 1177: 三角形

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

筛选

三角形 (C语言代码)

摘要:解题思路:从后往前走注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>int a[150][150];int dp[1……

三角形 (C语言代码)

摘要:#include <stdio.h>      //动态规划 #define MAX 101 int maxSum[MAX][MAX]; int m; int D[MAX][MAX]; in……

三角形 (C语言代码)

摘要:解题思路:从倒数第三行最后往前算,记住每一次当前行和下一行可加的数的和,取最大后就可以。注意事项:参考代码:#include <stdio.h>#include <math.h>int max(int……

三角形 (C++代码)(DP)

摘要:#include <iostream> #include <stdio.h> #include <cstring> #include <algorithm> #include <cmath> ……

三角形 (C++代码)

摘要:解题思路:dp...注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #define N 100 using nam……

三角形 (C++代码)

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