优质题解 蓝桥杯2015年第六届真题-移动距离-题解C++详细注释 摘要:解题思路:当w=6,m=14,n=5列数相减+横坐标(5-2)参考代码:#include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2021年04月11日 0 点赞 0 评论 744 浏览 评分:9.9
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++题解 摘要:解题思路:比较简单的一道题注意事项:注意方向的对应,行数是越向下越大参考代码:#include <iostream> #include <vector> #include <string> …… 题解列表 2021年04月11日 0 点赞 0 评论 190 浏览 评分:0.0
蓝桥杯2014年第五届真题-兰顿蚂蚁 c++题解 摘要:解题思路:比较简单的一道题注意事项:注意方向的对应,行数是越向下越大参考代码:#include <iostream> #include <vector> #include <string> …… 题解列表 2021年04月11日 0 点赞 0 评论 210 浏览 评分:0.0
1041: [编程入门]宏定义之找最大数 摘要:解题思路:用了if语句注意事项:要写两个cout << fixed << setprecision(3) << a << endl;参考代码:#include<bits/stdc++.h>using…… 题解列表 2021年04月11日 0 点赞 0 评论 397 浏览 评分:9.9
题目 1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[7]; int n,n1; int main(){ …… 题解列表 2021年04月11日 0 点赞 0 评论 324 浏览 评分:9.9
带参宏定义 摘要:解题思路:宏定义的本质是替换过程注意事项:未知变量在主函数中定义参考代码:#include<iostream>using namespace std;#define swap(x,y) {t=x,x=…… 题解列表 2021年04月11日 0 点赞 0 评论 391 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:#include<iostream>using namespace std;bool isleap(int n){ if((n % 4 == 0 && n % 100 != 0) || n % 400…… 题解列表 2021年04月10日 0 点赞 0 评论 453 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:用bool函数注意事项:一定要写 double area = sqrt(s * (s - a) * (s - b) * (s - c));不然就是求半周长了参考代码:#include<bi…… 题解列表 2021年04月10日 0 点赞 0 评论 409 浏览 评分:0.0
日期的计算 摘要:解题思路:利用类进行处理;注意事项:平年、闰年的判断。参考代码:#include<iostream> class Time { private:int year, month, day; p…… 题解列表 2021年04月10日 0 点赞 0 评论 254 浏览 评分:0.0
优质题解 题目 1433: 蓝桥杯2013年第四届真题-危险系数 摘要:解题思路:采用邻接矩阵进行深度优先搜索,我们可以这样想,每搜出一条路,ant++(记录总共搜出所少条路),且让b[搜过的路径下标]+1,这样,如果它是关键点,那么所有的深搜路径都会经过那个点,这时,b…… 题解列表 2021年04月10日 0 点赞 2 评论 1203 浏览 评分:8.5