二分搜索-整数小拼接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月22日 1 点赞 0 评论 1734 浏览 评分:10.0
1796: 蛇形填数(二维数组)(思路清晰)(步骤详细) 摘要:图片分析;解题思路: 在执行下一步之前先判断下一个格子是否有数已经填进去了并且是否在方阵范围内。 只有在方阵内并且格子里面没有被填过,则填数,否则改变…… 题解列表 2022年03月08日 1 点赞 0 评论 1464 浏览 评分:10.0
2037: 字符串比较 摘要:解题思路:用vector函数就很简单了注意事项:参考代码:#include<bits/stdc++.h> using namespace std; vector<string> x; int m…… 题解列表 2022年03月09日 0 点赞 0 评论 286 浏览 评分:10.0
优质题解 五大方法带你解决三个数最大值问题(附带任意个数最大值解决方案) 摘要:一、if嵌套语句 注意大于号和小于号。 if(表达式) 语句其语义是:如果表达式的值为真,则执行其后的语句,否则不执行该语句。 第二种形式为: if-elseif(表达式…… 题解列表 2022年03月13日 11 点赞 53 评论 30160 浏览 评分:10.0
优质题解 1102: 明明的随机数 摘要:解题思路:去重:数组的去重是很难直接把重复值“删去”的,此题要求输入的随机数都是正整数,所以可以把重复值全改成0,最后输出非0数,就算去重了。先排序,后去重。排序使用快速排序。注意事项:快速排序函数中…… 题解列表 2022年03月13日 1 点赞 0 评论 1103 浏览 评分:10.0
蓝桥杯算法提高VIP-邮票面值设计 摘要:```cpp #include #include #include using namespace std; int n, k,ans; int a[15], dp[10005];//dp…… 题解列表 2022年03月28日 0 点赞 0 评论 443 浏览 评分:10.0
数据结构-字符串插入[c 语言] 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> // 字符串插入 int main(int argc, char *argv[])…… 题解列表 2022年04月05日 0 点赞 0 评论 484 浏览 评分:10.0
信息学奥赛一本通T1252-走迷宫 —— Python首发 BFS广度优先搜索 (Python代码) 摘要:##### 先上代码: ```python from queue import Queue as Qu class BFSNode(): # 节点 def __init__(sel…… 题解列表 2022年04月18日 0 点赞 2 评论 796 浏览 评分:10.0
优质题解 1076: 内部收益率 摘要:解题思路:(1)首先优质题解第一那位的代码是有问题的,我在 debug 卡住的时候试了一下他的代码,结果原封不动贴到 IDE 输出的和标准答案不符。(2)那个兄弟的问题好像是把“判断 NPV 是否接近…… 题解列表 2022年04月23日 1 点赞 2 评论 985 浏览 评分:10.0
蓝桥杯算法提高VIP-进制转换 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%X",&n); pr…… 题解列表 2022年05月07日 0 点赞 0 评论 263 浏览 评分:10.0