1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:kan注意事项: int nNum1 = m ;//中间变量:保存m int nNum2 = n ;//中间变量:保存n参考代码:int t = 1 ;//取余计算的余数,赋值为1是为…… 题解列表 2022年03月26日 0 点赞 0 评论 383 浏览 评分:9.9
24行 63ms 蓝桥杯算法提高VIP-身份证排序 摘要:解题思路:一看数量较大就毫不犹豫选择sort.注意事项:不要用二维数组,不好写sort的比较函数参考代码:#include<stdio.h>#include<string.h>#include<alg…… 题解列表 2022年03月26日 0 点赞 0 评论 514 浏览 评分:9.2
角谷猜想 c++ 摘要:解题思路:先写偶数,再写奇数,中间用else(个人想法)注意事项:不要用break,是偶数/2,不是偶数*3+1参考代码:#include<bits/stdc++.h>using namespace …… 题解列表 2022年03月26日 0 点赞 0 评论 1344 浏览 评分:8.3
简单,不会的是傻子 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h> using namespace std; int main() { cout<<"Hello dotcpp"…… 题解列表 2022年03月26日 0 点赞 0 评论 738 浏览 评分:9.9
蓝桥杯2017年第八届真题-日期问题 摘要: #include using namespace std; int dir[13] = {0,31,28,31,30,31,30,31,31,30,31,30…… 题解列表 2022年03月26日 0 点赞 0 评论 534 浏览 评分:9.9
三步求出最大值 摘要:解题思路:一般见到求最大值,首先考虑stl,但是这个题只有3个数,那么久方便许多了,c++可以直接用max函数。注意事项:参考代码:#include<iostream>using namespace …… 题解列表 2022年03月25日 0 点赞 0 评论 613 浏览 评分:9.9
看了这么多都没有递归,我来写个递归吧 摘要:解题思路:循环都可以改成递归,会写的更容易。注意事项:注意最后相加的时候,i是1到n,这个地方容易惯性写成0~n-1.参考代码:#include<iostream>#include<iomanip>u…… 题解列表 2022年03月25日 0 点赞 0 评论 577 浏览 评分:9.9
[编程入门]三个数字的排序(C++)冒泡排序思想 摘要:解题思路:运用冒泡排序思想对三个数字进行排序;把a,b,c看作一组有序序列;fun函数对两个数进行排序;使用三次fun函数便可完成三个数的排序注意事项:swap函数是C++自带的函数!fun函数的形参…… 题解列表 2022年03月25日 1 点赞 2 评论 1256 浏览 评分:9.9
蓝桥杯2013年第四届真题-幸运数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; typedef long long ll; l…… 题解列表 2022年03月25日 0 点赞 0 评论 610 浏览 评分:9.9
最简单解法【C++】 摘要:```cpp #include using namespace std; int uu; bool check(int year, int month, int day){ …… 题解列表 2022年03月25日 0 点赞 1 评论 415 浏览 评分:4.7