3052: 最大上升子序列和 摘要:解题思路:经典DP, f[i] 以i节点为结尾的最大上升子序列和注意事项:参考代码:#include<iostream> #include<algorithm> const int N = 1e3…… 题解列表 2024年04月18日 0 点赞 0 评论 234 浏览 评分:9.9
3053: 怪盗基德的滑翔翼 摘要:解题思路:转化最长上升子序列和最长下降子序列的最大值注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> cons…… 题解列表 2024年04月18日 0 点赞 0 评论 264 浏览 评分:9.9
3054: 最低通行费 摘要:解题思路:DP注意事项:初始化第一行第一列数据参考代码:#include<iostream> #include<algorithm> using namespace std; const int…… 题解列表 2024年04月18日 0 点赞 0 评论 301 浏览 评分:9.9
: 三角形最佳路径问题 摘要:解题思路:三角形最佳路径经典DP, f[i][j]表示到达i行j列的最佳路径注意事项:参考代码:#include<iostream> #include<algorithm> using names…… 题解列表 2024年04月18日 0 点赞 0 评论 383 浏览 评分:9.9
回文数组(贪心) 摘要:解题思路:贪心,优先操作相邻的两个数注意事项:数据需要开long long,否则只能只能过部分数据参考代码:#include#include#includeusing namespace std;ty…… 题解列表 2024年04月18日 1 点赞 0 评论 709 浏览 评分:9.9
信息学奥赛一本通T1267-01背包问题 摘要:解题思路:f[j] j背包重量得到的最大价值注意事项:当j 大于等于第i物品的重量时,更新f[j]参考代码:#include<iostream> #include<algorithm> using…… 题解列表 2024年04月18日 0 点赞 0 评论 250 浏览 评分:9.9
大盗阿福(记忆化搜索) 摘要:解题思路:注意事项:运用递归时注意运行时间,采用记忆化搜索可有效避免运行时间超限(即用一串数组来记录递归出来的数据)参考代码:#include<stdio.h>#include<stdlib.h>in…… 题解列表 2024年04月18日 0 点赞 0 评论 332 浏览 评分:9.9
可能好理解的 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年04月18日 0 点赞 0 评论 372 浏览 评分:9.9
信息学奥赛一本通T1268-完全背包问题 摘要:解题思路:完全背包注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 2e2 …… 题解列表 2024年04月18日 0 点赞 0 评论 221 浏览 评分:9.9
2133: 信息学奥赛一本通T1269-庆功会 摘要:解题思路:优化存储的版本和01背包类似注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const in…… 题解列表 2024年04月18日 1 点赞 0 评论 216 浏览 评分:9.9