蓝桥杯算法提高- c++_ch02_02-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); switch(c) …… 题解列表 2020年08月16日 0 点赞 0 评论 367 浏览 评分:0.0
[编程入门]三个数最大值-题解(C++代码) 摘要:解题思路:一般做法:通过题目可得知,先用用内嵌四个正整形变量a,d,c,max,输入a,b,c,然后max等于a;再用if语句如果max<b那么max=b,max<c那么max=c。最后输出max。代…… 题解列表 2020年08月16日 0 点赞 3 评论 224 浏览 评分:3.6
蓝桥杯2019年第十届真题-旋转-题解(C语言代码) 摘要:#include <stdio.h> int n,m; int a[100][100]; int main() { int i,j; scanf("%d%d",&n,&m); for(…… 题解列表 2020年08月16日 0 点赞 0 评论 672 浏览 评分:6.5
蓝桥杯基础练习-数列排序-题解(C语言代码) 摘要:#include <stdio.h> #include <iostream> #include <algorithm> using namespace std; int main() {in…… 题解列表 2020年08月16日 0 点赞 0 评论 430 浏览 评分:0.0
[编程入门]完数的判断-题解(C++代码) 摘要:解题思路:从6开始循环,对每个数求 除去其本身的 所有因数并用数组记录,同时累加因数和。注意事项:参考代码:#include <iostream> #include <cstring> using…… 题解列表 2020年08月16日 0 点赞 0 评论 570 浏览 评分:0.0
[编程入门]阶乘求和-题解(C++代码) 摘要:解题思路:注意事项: ***int会爆,要用long long***参考代码:#include <iostream> using namespace std; #define ll long l…… 题解列表 2020年08月16日 0 点赞 0 评论 373 浏览 评分:0.0
[编程入门]Sn的公式求和-题解(C++代码) 摘要:解题思路:a,aa,aaa······的变化规律是aaa=aa*10+a=((a*10+a)*10+a)+a (秦九韶???)注意事项:参考代码:#include using namespace s…… 题解列表 2020年08月16日 0 点赞 0 评论 238 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目-题解 无需数组,占用空间少,效率高(C++代码) 摘要:解题思路: 技巧解题,比方说输入的两个数为a,b。现在需要计算a,b组合买不到的最大数,先计算a*b,然后遍历a*b>=i>max_,判断是否能被i整除,便可得出买不到的最大数。至于为什么是小于…… 题解列表 2020年08月16日 0 点赞 2 评论 1496 浏览 评分:8.7
蓝桥杯基础练习VIP-阶乘计算-题解(C语言代码) 摘要:解题思路:参考代码:#include<stdio.h> #include<stdlib.h> const int maxn=1e5+5; int a[maxn]; int main(){ …… 题解列表 2020年08月16日 0 点赞 0 评论 1284 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串比较-题解(C++代码,作弊行为,大家不要学哈) 摘要:解题思路:不用strcmp,用string类也行啊,哈哈!!!注意事项:参考代码:#include<iostream> #include<string> using namespace std;…… 题解列表 2020年08月16日 0 点赞 0 评论 1057 浏览 评分:4.0