最长上升序列(动态规划) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ int max=(a>b) ? a : b;&n…… 题解列表 2025年11月26日 0 点赞 0 评论 258 浏览 评分:0.0
3050: 最长上升子序列 解题思路:注意事项:dp[j]=max(dp[j],dp[i]+1);参考代码:#include#includeintmax(inta,intb){returna>b?a:b;}intmain(){intN;intarr[10001], 题解列表 2025年11月27日 0 点赞 0 评论 287 浏览 评分:0.0