蓝桥杯算法训练VIP-整除问题-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ int min,max,factor; cin>>min>>max>>fa…… 题解列表 2020年03月27日 0 点赞 0 评论 1106 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ int n; cin>>n; double *p=new dou…… 题解列表 2020年03月27日 0 点赞 0 评论 1193 浏览 评分:8.0
蓝桥杯算法训练VIP-判定字符位置-题解(C++代码) 摘要:```cpp #include using namespace std; int main() { string s; cin>>s; int len=s.…… 题解列表 2020年03月27日 0 点赞 0 评论 1059 浏览 评分:0.0
蓝桥杯基础练习VIP-矩阵乘法-题解(C++代码) ```cpp#include#include#include#include#include#include#includeusingnamespacestd;typedeflonglongLL;constintINF=0x3f3f3f3f;constintMAXN=30+5;intn, 题解列表 2020年03月27日 0 点赞 0 评论 1063 浏览 评分:0.0
树查找-题解(C++代码) 摘要:```cpp #include using namespace std; int f(int n){//2的n次方 int sum=1; for(int i=0;i>n){…… 题解列表 2020年03月27日 0 点赞 0 评论 1046 浏览 评分:9.9
蓝桥杯算法提高VIP-和最大子序列-题解(C++代码) ```cpp#include#include#include#include#include#include#includeusingnamespacestd;typedeflonglongLL;constintINF=0x3f3f3f3f;constintMAXN=1e5+5;intn;intarr 题解列表 2020年03月27日 0 点赞 0 评论 1024 浏览 评分:0.0
去掉空格 (C++代码)最易懂 ``**gets()函数与cin的用法相同,但gets输入字符串中有空格也可以直接输入**```cpp#include#includeusingnamespacestd;intmain(){chara[80];while(gets(a)!=NULL){//gets可以输入空格用法与cin相同inti, 题解列表 2020年03月27日 0 点赞 0 评论 1205 浏览 评分:8.0
[编程入门]矩阵对角线求和-题解(C++代码) 萌新第一次发题解请多多关照这道题可以用非常简单而直接的方法来做目的是给出主对角线和副对角线的元素和那么一般来说我们都会开一个二维数组但实际上我们只需要用一个变量循环九次反复存储每次判断当前输入的次数把我们需要的加进结果里输出就好了多说无益请看下面.png~~其实这样做很另类也不太好就是了也就图一乐的代 题解列表 2020年03月27日 0 点赞 0 评论 1542 浏览 评分:8.7
JakeLin-2265题-蓝桥杯2015年第六届真题-移动距离-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main(){ int w,m,n; cin>>w>>m>>n;…… 题解列表 2020年03月27日 0 点赞 0 评论 1149 浏览 评分:9.9
28.前m大的数 (C++代码)只做最好的思路! 这题是非常简单的一道题,刚入门的人都可以一次通过,代码如下:```cpp#includeusingnamespacestd;inta[2000005];intmain(){longlongn,m;cin>>n>>m;for(inti=0;i>a[i];}sort(a, 题解列表 2020年03月27日 0 点赞 0 评论 1400 浏览 评分:9.9