2037: 字符串比较 摘要:解题思路:用vector函数就很简单了注意事项:参考代码:#include<bits/stdc++.h> using namespace std; vector<string> x; int m…… 题解列表 2022年03月09日 0 点赞 0 评论 266 浏览 评分:10.0
优质题解 五大方法带你解决三个数最大值问题(附带任意个数最大值解决方案) 摘要:一、if嵌套语句 注意大于号和小于号。 if(表达式) 语句其语义是:如果表达式的值为真,则执行其后的语句,否则不执行该语句。 第二种形式为: if-elseif(表达式…… 题解列表 2022年03月13日 8 点赞 53 评论 29818 浏览 评分:10.0
优质题解 1102: 明明的随机数 摘要:解题思路:去重:数组的去重是很难直接把重复值“删去”的,此题要求输入的随机数都是正整数,所以可以把重复值全改成0,最后输出非0数,就算去重了。先排序,后去重。排序使用快速排序。注意事项:快速排序函数中…… 题解列表 2022年03月13日 1 点赞 0 评论 1073 浏览 评分: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 评论 413 浏览 评分:10.0
数据结构-字符串插入[c 语言] 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> // 字符串插入 int main(int argc, char *argv[])…… 题解列表 2022年04月05日 0 点赞 0 评论 468 浏览 评分:10.0
信息学奥赛一本通T1252-走迷宫 —— Python首发 BFS广度优先搜索 (Python代码) 摘要:##### 先上代码: ```python from queue import Queue as Qu class BFSNode(): # 节点 def __init__(sel…… 题解列表 2022年04月18日 0 点赞 2 评论 766 浏览 评分:10.0
优质题解 1076: 内部收益率 摘要:解题思路:(1)首先优质题解第一那位的代码是有问题的,我在 debug 卡住的时候试了一下他的代码,结果原封不动贴到 IDE 输出的和标准答案不符。(2)那个兄弟的问题好像是把“判断 NPV 是否接近…… 题解列表 2022年04月23日 1 点赞 2 评论 949 浏览 评分:10.0
蓝桥杯算法提高VIP-进制转换 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ scanf("%X",&n); pr…… 题解列表 2022年05月07日 0 点赞 0 评论 240 浏览 评分:10.0
蓝桥杯算法提高VIP-输入输出格式练习 题解(c++语言) 摘要:解题思路:按题目格式输入输出就可以了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a;double b;char ch;int…… 题解列表 2022年05月17日 0 点赞 0 评论 214 浏览 评分:10.0
[编程入门]C语言循环移位 摘要:解题思路:注意事项:参考代码://程序名:新的C++程序//作者: #include<iostream>#include<fstream>#include<algorithm>using namesp…… 题解列表 2022年05月19日 0 点赞 0 评论 220 浏览 评分:10.0