【编程入门】三个数找最大值 摘要:解题思路:题目是输入a、b、c三个值,输出其中最大值,除了需要a,b,c三个变量以外,还需要一个变量t存放最大值,先拿a和b比较,如果a>b则t存放a的值,否则存放b的值,再拿c和t比较(因为t中存放…… 题解列表 2024年05月15日 13 点赞 0 评论 2078 浏览 评分:9.9
编写题解 1184: 众数问题 摘要:```cpp #include #include #include #include using namespace std; bool cmp(vector& a,vector& b) …… 题解列表 2024年05月15日 0 点赞 0 评论 227 浏览 评分:9.9
题解 1195: 去掉双斜杠注释 摘要:```cpp #include #include #include #include using namespace std; const string flagString="//"; …… 题解列表 2024年05月15日 0 点赞 0 评论 300 浏览 评分:9.9
1041 宏定义找最大数(使用三目运算符) 摘要:解题思路:注意事项:参考代码:#include#define zuidashu(a,b,c,max) a=a>b?a:b; max=a>c?a:c;void hanshu(float a,float …… 题解列表 2024年05月16日 0 点赞 0 评论 505 浏览 评分:9.9
1073: 弟弟的作业 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> # using namespace std; int main() { int a,…… 题解列表 2024年05月17日 1 点赞 0 评论 367 浏览 评分:9.9
深度优先搜索+栈区存储路线 摘要:解题思路:因为此题的地图大小只有5*5,数据量较小,因此我想也可以使用深度优先搜索枚举而且应该写起来也比宽度优先搜索简单。注意事项:只有输出的时候","后面还要加个空格。参考代码:/*最需要注意的是f…… 题解列表 2024年05月19日 0 点赞 0 评论 326 浏览 评分:9.9
和与乘积---详细注释 摘要:解题思路:见代码详细注释参考代码:#include<bits/stdc++.h> #define endl "\n" typedef long long ll ; using namespac…… 题解列表 2024年05月19日 0 点赞 0 评论 371 浏览 评分:9.9
1837: 蓝桥杯2015年第六届真题-机器人塔 C++代码 常规dfs爆搜 摘要:解题思路: m和n不大于500,即m+n <= 1000,所以最多不会超过50行。 定义dfs为 当前访问第i行第j个,需要输入的字符是c,由于定义是访问时输入,因此需要在…… 题解列表 2024年05月19日 1 点赞 0 评论 354 浏览 评分:9.9
铲雪车(snow) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll a,b…… 题解列表 2024年05月19日 0 点赞 0 评论 323 浏览 评分:9.9
用dijkstra优先队列 摘要:#include #define int long long #define endl '\n' using namespace std; typedef pair PII; const…… 题解列表 2024年05月20日 0 点赞 0 评论 433 浏览 评分:9.9