题解 1177: 三角形

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

筛选

三角形 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int t,n,i,j,a[100][100]; scanf("%d",&t); while(t--) {  s……

三角形 (C语言代码)

解题思路:这其实动态规划算法的一道入门入门入门级的题,又称为数塔。解法就是从下往上,两两比较,以样例为例。最下面的4526,先4和5比较,二者间大的数与上面的2相加。依次类推。比较规整的代码链接:http://paste.ubuntu.com/26087872/(其实是我不知道怎么贴好点)注意事项:不

三角形 (C语言代码)

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

三角形 (C语言代码)

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