- 0x01题面 给定一个长为n的序列,求它的最长上升子序列。 n<103n<103 子序列指序列中任意m个元素拼起来形成的新序列(可不连续) 0x02思路 考虑任意一个长为m的上升子序列... 0x01题面 给定一个长为n的序列,求它的最长上升子序列。 n<103n<103 子序列指序列中任意m个元素拼起来形成的新序列(可不连续) 0x02思路 考虑任意一个长为m的上升子序列...
- problem solution codes #include<iostream> #include<queue> using namespace std; struct x... problem solution codes #include<iostream> #include<queue> using namespace std; struct x...
- problem solution codes #include<cstdio> #include<cstring> #include<cmath> using ... problem solution codes #include<cstdio> #include<cstring> #include<cmath> using ...
- problem solution codes #include<iostream> using namespace std; const int maxn = 110; int tree... problem solution codes #include<iostream> using namespace std; const int maxn = 110; int tree...
- problem solution codes /* 作者:gwj1139177410 题目:p2627 村村通 */ //Kruskal #include<iostream> #incl... problem solution codes /* 作者:gwj1139177410 题目:p2627 村村通 */ //Kruskal #include<iostream> #incl...
- problem solution codes #include<cstdio> #include<algorithm> #include<cmath> using... problem solution codes #include<cstdio> #include<algorithm> #include<cmath> using...
- 提交:http://codevs.cn/problem/1048/ 递推 //f[i]:到i为止的LIS的长度。 //f[i]=max{1,f[j]+1|j<i&&aj<a... 提交:http://codevs.cn/problem/1048/ 递推 //f[i]:到i为止的LIS的长度。 //f[i]=max{1,f[j]+1|j<i&&aj<a...
- problem solution codes #include<iostream> #include<string> using namespace std; int mai... problem solution codes #include<iostream> #include<string> using namespace std; int mai...
- problem solution codes #include<iostream> using namespace std; const int maxn = 100010; #defi... problem solution codes #include<iostream> using namespace std; const int maxn = 100010; #defi...
- problem solution codes //MST-Prim-贪心-堆优化 #include<iostream> #include<algorithm> #includ... problem solution codes //MST-Prim-贪心-堆优化 #include<iostream> #include<algorithm> #includ...
- problem solution codes //MST-Kruskal-排序贪心+并查集 //题中N=M,(M小于N^2的)稀疏图用邻接表。 #include<iostream> #i... problem solution codes //MST-Kruskal-排序贪心+并查集 //题中N=M,(M小于N^2的)稀疏图用邻接表。 #include<iostream> #i...
- problem solution codes #include<iostream> using namespace std; int n, a[1010], t; int main(){... problem solution codes #include<iostream> using namespace std; int n, a[1010], t; int main(){...
- problem solution codes #include<iostream> using namespace std; int main(){ int n, k=1; c... problem solution codes #include<iostream> using namespace std; int main(){ int n, k=1; c...
- problem solution codes //Floyd-wallshall模板 #include<iostream> using namespace std; int n, e[1... problem solution codes //Floyd-wallshall模板 #include<iostream> using namespace std; int n, e[1...
- problem 给出一个n*n的矩阵,每一格有一个非负整数A[i][j],(Aij <= 1000)现在从(1,1)出发,可以往右或者往下走,最后到达(n,n)每达到一格,把该格子的数取出来,该格... problem 给出一个n*n的矩阵,每一格有一个非负整数A[i][j],(Aij <= 1000)现在从(1,1)出发,可以往右或者往下走,最后到达(n,n)每达到一格,把该格子的数取出来,该格...
上滑加载中
推荐直播
-
华为云码道Agent集成与鸿蒙实战2026/08/11 周二 19:00-21:00
王一男-华为云码道产品规划专家;李炎-华为云码道产品专家;彭江敏-华为云鸿蒙端云一体化开发专家
本次直播带你解读华为云码道7月份产品新特性、新功能。更有专家演示码道Agent Space × 钉钉机器集成实战,从0到1打通消息通道;码道鸿蒙端云一体化实战,快速搭建员工签到系统。
回顾中 -
华为云开发者AI素养直播课·第五期2026/09/04 周五 16:00-18:00
林华鼎-华为云AI开发者运营负责人;蒋春阳-华为云AI开发者案例开发专家
本期直播内容: AI工具体验营 · 第5-8课连讲。Agent-Team 多智能体协作完成毕业设计实践
回顾中 -
华为云开发者AI素养ClassRoom·第六期2026/09/08 周二 19:00-20:00
樊渊-2026华为软件挑战赛冠军
高手来了:看软挑高手解析二维排样问题—从工业难题到算法突破
回顾中
热门标签