优质题解 1207: 字符排列问题 C++ STL容器 深度优先搜索DFS 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; map<char,int>m; //对排列中的字符进行查重…… 题解列表 2022年03月14日 0 点赞 0 评论 600 浏览 评分:9.9
1514: 蓝桥杯算法提高VIP-夺宝奇兵 摘要:解题思路:这道题有点奇怪,有些条件没有说清楚,这里题人不能往右走,切只能往上走或者走左上角,既然这样就直接dp注意事项:当i==j的时候不能往上走,如果没有限制的话会超时参考代码:#include<b…… 题解列表 2022年03月14日 0 点赞 0 评论 325 浏览 评分:0.0
防御导弹 序列型动态规划,最长下降子序列,方法都会,注意细节 摘要: ```cpp #include #include #include using namespace std; int n; int dp[1005]; int a[1005]; i…… 题解列表 2022年03月14日 0 点赞 0 评论 497 浏览 评分:9.9
母牛问题由递归到循环的解法 摘要:解题思路:首先想到的是递归解法,但是运行后发现内存超限了,之后考虑递归优化(包括尾优化,支持的编译器和语言太少,其他优化方法我不会),然后就转到循环,其实一开始觉得可以用循环写,但是又觉得很晦涩,用递…… 题解列表 2022年03月14日 0 点赞 0 评论 243 浏览 评分:7.0
高精度加法 摘要:```cpp #include using namespace std; vector add_num(vector&a, vector&b){ if(a.size() < b.si…… 题解列表 2022年03月14日 0 点赞 0 评论 335 浏览 评分:0.0
信息学奥赛一本通T1320-均分纸牌 摘要:```cpp #include using namespace std; typedef long long ll; const int N=100+5; int n; int a[N];…… 题解列表 2022年03月14日 0 点赞 0 评论 487 浏览 评分:9.9
短作业优先-答疑 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e3+5; int n; struct no…… 题解列表 2022年03月14日 0 点赞 0 评论 526 浏览 评分:9.9
判断死锁了属于是-盾神与积木游戏 摘要:丐版银行家算法 ```cpp #include using namespace std; typedef long long ll; const int N=1e4+5; int m; …… 题解列表 2022年03月14日 0 点赞 0 评论 403 浏览 评分:9.9
编写题解 1053: 二级C语言-平均值计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; int count=0; in…… 题解列表 2022年03月14日 0 点赞 0 评论 275 浏览 评分:0.0
1205: 字符串的修改 C++ 动态规划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; string s1; string s2; int L1,L2; …… 题解列表 2022年03月14日 0 点赞 0 评论 241 浏览 评分:0.0