防御导弹-DP(最长下降子序列) 摘要:解题思路:DP(最长下降子序列)注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年05月02日 0 点赞 0 评论 153 浏览 评分:0.0
金明的预算方案(DP+邻接表) 摘要:解题思路:DP (分别考虑只拿主件, 主件+ 1附件, 主件 + 2附件)注意事项:参考代码:#include<bits/stdc++.h>usingnamespace&n…… 题解列表 2025年05月02日 0 点赞 0 评论 110 浏览 评分:0.0
邮局选址问题:贪心策略-横纵坐标中位数 摘要:解题思路: 贪心策略, 横纵坐标中位数注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;const&nb…… 题解列表 2025年05月02日 0 点赞 0 评论 80 浏览 评分:0.0
三种方法求解斐波那契数列 摘要:方法一:递推法#include<bits/stdc++.h>usingnamespacestd;intmain(){&nbs…… 题解列表 2025年05月01日 0 点赞 0 评论 217 浏览 评分:10.0
明明的随机数(set容器自动排序和去重) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){&…… 题解列表 2025年05月01日 1 点赞 0 评论 198 浏览 评分:10.0
数列排序(C++)笔记 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 238 浏览 评分:0.0
单词个数统计(C++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 212 浏览 评分:10.0
set与stringstream字符串流 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2025年05月01日 1 点赞 0 评论 147 浏览 评分:10.0
C++:set容器+vector容器+更改set容器排列规则 摘要:解题思路:注意事项://修改方法2// 比较函数bool compare(int a, int b){ return a > b; // 这里定…… 题解列表 2025年04月29日 1 点赞 0 评论 138 浏览 评分:0.0
C++:动态规划记忆化【涉及递归】 摘要:解题思路:记忆化就是把计算过的存储起来,下一次需要的时候直接使用就可以注意事项:参考代码:#include <iostream>#include<vector>using na…… 题解列表 2025年04月29日 0 点赞 0 评论 169 浏览 评分:0.0