[编程基础]输入输出练习之浮点数专题-题解(C++代码) 摘要:解题思路:注意事项:要注意观察给出的例输入输出的位数,特别是g要多一位计算。参考代码:#include<iostream>using namespace std;int main(){ doub…… 题解列表 2020年12月12日 0 点赞 1 评论 1603 浏览 评分:6.0
优质题解 ✔✔✔ 双向BFS+最简题解 [c++] 摘要: *cntMat[x]:矩阵x累计所花的步数(从起点到现在的状态累积所用的步数) dirMat[…… 题解列表 2020年12月11日 0 点赞 5 评论 3100 浏览 评分:4.1
蓝桥杯2015年第六届真题-生命之树-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;const int MaxN = 1e5;long long w[Max…… 题解列表 2020年12月11日 0 点赞 0 评论 943 浏览 评分:0.0
[编程入门]温度转换-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std ;int main(){ float f ; c…… 题解列表 2020年12月11日 0 点赞 0 评论 417 浏览 评分:2.0
[编程入门]报数问题-题解(C++代码)适用于所有出圈题即n个人报数,报m的淘汰 摘要:###### 解题思路: ###### 1. 建立一个具有头、尾指针的环形链表 ###### 2. 利用尾指针不断插入节点,建立有n个节点的链表 ###### 3. 报m的人出圈 ######…… 题解列表 2020年12月11日 0 点赞 0 评论 1118 浏览 评分:2.0
蓝桥杯算法提高- c++_ch03_02-题解(C++代码) 摘要:```c++ #include using namespace std; int combine(int n,int k)//组合数公式 { int rst = 1; if(k < …… 题解列表 2020年12月10日 0 点赞 0 评论 634 浏览 评分:0.0
排序-题解(C++代码) 摘要:解题思路:可以使用priority_queue优先队列自动排序十分方便并且时间短注意事项:参考代码:#include<iostream>#include<queue>using namespace s…… 题解列表 2020年12月10日 0 点赞 0 评论 1473 浏览 评分:9.9
The 3n + 1 problem -题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>//本体需要注意的是输入i,j的值需要比较大小//temp在后边的运算中会产生很大的数据故int…… 题解列表 2020年12月09日 0 点赞 1 评论 801 浏览 评分:9.9
成绩等级转换-题解(C++代码)满分题解(真的) 摘要:解题思路:我用最笨的方法我用if来一个加一个的算。(最后一个用else)注意事项:参考代码:#include<iostream>using namespace std;int main(){ int …… 题解列表 2020年12月09日 0 点赞 0 评论 751 浏览 评分:9.9
蓝桥杯2013年第四届真题-大臣的旅费-题解(C++代码) 摘要:#### 这一题真是搞人心态,用邻接矩阵居然爆栈 #### 那就原始邻接表和vector邻接表; ```javascript #include using namespace std; #d…… 题解列表 2020年12月07日 0 点赞 0 评论 655 浏览 评分:6.0