P1044 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[26][26];int s[26];int main(){ int i,j,n; scanf("%d",&n); for(i…… 题解列表 2018年02月13日 0 点赞 0 评论 1331 浏览 评分:6.0
P1044 (C++代码) 摘要:解题思路:动态规划注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[100][100]; …… 题解列表 2017年11月12日 0 点赞 0 评论 1593 浏览 评分:0.0
P1044 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n; scanf("%d",&n); int m[n][n]; …… 题解列表 2018年02月23日 9 点赞 0 评论 1268 浏览 评分:0.0
数字三角形模型 摘要:# 数字三角形模型原题 ## 动态规划 1.二维状态表示,f[i][j]表示走到(i,j)(包括)时的最大路径权值。 2.状态转移可由f[i - 1][j - 1]和f[i][j - 1]得…… 题解列表 2023年02月08日 0 点赞 0 评论 427 浏览 评分:0.0
数字三角形(DP) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;//定义常量N,用于限制三角…… 题解列表 2025年10月26日 0 点赞 0 评论 118 浏览 评分:0.0