蓝桥杯算法提高VIP-冒泡排序计数-题解(C++代码)——必看!!!!! ##没事也就超时百分之九十一#嘻嘻嘻```cpp#include#includeusingnamespacestd;intt,n,k;inta[1000010];intb[1000010];intans;voidbuttle(intm){for(inti=1;i 题解列表 2020年04月07日 0 点赞 0 评论 3199 浏览 评分:4.6
蓝桥杯算法训练VIP-最长字符串-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ string s[5]; cin>>s[0]; int max=…… 题解列表 2020年04月07日 0 点赞 0 评论 1288 浏览 评分:0.0
蓝桥杯算法提高-JOE的算数-题解(C++代码) ```cpp#includeusingnamespacestd;longlonga,b,mod;longlongksm(longlonga,longlongb,longlongmod){longlongret=1;while(b){if(b&1)ret=ret*a%mod;a=(a*a)%mod;b> 题解列表 2020年04月07日 0 点赞 0 评论 1156 浏览 评分:9.9
计算球体积-题解(C++代码) 摘要: #include using namespace std; int main() { float r; double y; while(cin>>r) { …… 题解列表 2020年04月07日 0 点赞 0 评论 1608 浏览 评分:9.9
蓝桥杯2013年第四届真题-幸运数-题解(C++代码) 这里如果使用链表来做的话,我认为最大的难度就是没有想到链表遍历的时候,同时删除,如果从前面遍历删除,会把下标打乱,所以需要从后面进行遍历删除,这里本来是先把元素变为0,然后删除0位置,但是这样会超时20%```cpp#include#includeusingnamespacestd;typedefst 题解列表 2020年04月07日 0 点赞 0 评论 1115 浏览 评分:8.0
Minesweeper -题解(C++代码) 没看题目直接看输入输出数据大概猜到了题目意思**1、普通算法**这是最容易理解的算法```cpp#include#include#includeusingnamespacestd;constintmaxn=1005;intm,n;//全局变量charmapp[maxn][maxn];intmapp_n 题解列表 2020年04月06日 0 点赞 0 评论 1231 浏览 评分:0.0
优质题解 二级C语言-求偶数和 (C++代码)(多种求解方式供你选择) 摘要:原题链接:[求偶数和](https://www.dotcpp.com/oj/problem1058.html "求偶数和") 解题思路: 1.根据题意定义变量 2.利用循环语句输入数据 …… 题解列表 2020年04月06日 0 点赞 1 评论 5632 浏览 评分:8.8
蓝桥杯算法提高VIP-01背包-题解(C++代码) ```cpp#include#include#includeusingnamespacestd;structnode{intw;intv;}things[210];intdp[210][5001];intmain(){intn,m,i,c;cin>>n>>m;for(i=1;i>things[i].w 题解列表 2020年04月06日 0 点赞 0 评论 1021 浏览 评分:0.0
二级C语言-分段函数 (C++代码)(希望对你有所帮助) 摘要:()原题链接:[分段函数](http://https://www.dotcpp.com/oj/problem1057.html "分段函数") 解题思路: 1,定义两个浮点数x,y。(考虑…… 题解列表 2020年04月06日 0 点赞 1 评论 1371 浏览 评分:9.9
蓝桥杯2013年第四届真题-带分数-题解(C++代码) ####思路:用全排列求解####参考代码:```#includeusingnamespacestd;inta[15],c=0;voidjudge(intn){ints1=0;for(inti=0;in)break;ints2=0;for(intj=i+1;j 题解列表 2020年04月06日 0 点赞 0 评论 1175 浏览 评分:0.0