题解 1177: 三角形

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

筛选

三角形 (C语言代码)

摘要:#include<iostream>  #include<algorithm> using namespace std; int main() { int n, m, i, j, ……

动态规划的一般解题方法

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int arr[100][100] ={0}; int dp[100][100]……

三角形 (C语言代码)

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

1177: 三角形

摘要:解题思路:注意事项:参考代码:t = int(input())for x in range(t):    n = int(input())    l = []    l = [ list(map(in……

三角形 (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……

小白可看!!!dp算法入门——数字三角形

安利一发自己的博客:我是蒟蒻,请轻喷。[https://blog.csdn.net/weixin_43738764](https://blog.csdn.net/weixin_43738764)解析:**dp算法的重点在于:要知道他是怎么样的状态,

三角形-题解(C语言代码)

解题思路:T测试T组数据N有N行数据动态规划解题注意事项:数组的巧妙运用,dp先存放num数组中最后一行,往上推,找到最优解问题分析:```c#includeintmain(){intT,N,i,j;scanf("%d",&T);while(T--){scanf("%d",

三角形 (C++代码)递推

摘要:#include<iostream> using namespace std; int    T , n , A[100][100],d[100][100]; int main(void){ ……