蓝桥杯2018年第九届真题-次数差-题解(C++代码) 摘要:``` #include using namespace std; int a[27]; int main() { int maxn = -1e9; int minn =…… 题解列表 2020年09月07日 0 点赞 0 评论 530 浏览 评分:0.0
蓝桥杯2015年第六届真题-饮料换购-题解(C++代码) 摘要:### 暴力解题,不断除3模3 ``` #include #include #include using namespace std; int main() { int n; s…… 题解列表 2020年09月06日 0 点赞 0 评论 339 浏览 评分:0.0
[编程入门]链表合并-题解(C++代码) 摘要:#include<bits/stdc++.h> using namespace std; struct node{ int data; int data2; node *next; …… 题解列表 2020年09月06日 0 点赞 0 评论 339 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果-题解(C++代码) 摘要:### 循环遍历判断n位数是否相同,不相同则进行运算。 ``` #include #include #include using namespace std; int main() {…… 题解列表 2020年09月05日 0 点赞 0 评论 471 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(C++代码) 摘要:解题思路:每一项的分母等于前一项分子,分子等于前一项分母加分子注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int …… 题解列表 2020年09月04日 0 点赞 0 评论 886 浏览 评分:9.6
蓝桥杯2013年第四届真题-带分数-题解(C++代码)蓝桥暴力杯 摘要:数据太水了纯暴力都可以过 ````cpp #include #include using namespace std; int N, ws, vis[10]; //数据范围N, 数…… 题解列表 2020年09月04日 0 点赞 0 评论 749 浏览 评分:9.9
蓝桥杯2013年第四届真题-核桃的数量-题解(C++代码) 摘要:##该题不能用先求其中两个最小公约数的方式,再求与剩余一个最小公倍数的方式。 ## 如1 2 4最终结果为8. ``` #include int main() { int a,b,c;…… 题解列表 2020年09月04日 0 点赞 0 评论 385 浏览 评分:0.0
蓝桥杯历届试题-翻硬币-题解(C++代码) 摘要:### 判断两个字符串不同的位置,并进行匹配,两个位置相减即为所求。 ``` #include #include #include int main() { char a[100…… 题解列表 2020年09月03日 0 点赞 0 评论 472 浏览 评分:0.0
蓝桥杯2016年第七届真题-最大比例-题解(C++代码) 摘要:解题思路: 1.求等比数列最大的公比,而且题目给出的数据保证有解,一开始考虑等比数列的求和公式啥的,但是对解决题目好像没什么用。 2.然后想到等…… 题解列表 2020年09月03日 0 点赞 0 评论 1856 浏览 评分:7.1
这个才是自定义函数的解法,上面的优解都没有用自定义函数 摘要:解题思路:先构造好自定义函数注意事项:素数是质数,不用去判断什么负数,而且题目也没有说明要判断,就不要去纠缠这个问题了、参考代码:#include<iostream>#include<string>u…… 题解列表 2020年09月03日 0 点赞 0 评论 692 浏览 评分:6.0