蓝桥杯基础练习VIP-回形取数-题解(C++代码) 摘要:解题思路: 其实这是个模拟题,初始方向为下,遇到数就输出并标记,遇到边界或者无数可输出就左转,全部输出后就会发现输出的顺序就是一个回形的。 ```cpp #include #inclu…… 题解列表 2019年08月02日 0 点赞 0 评论 1105 浏览 评分:0.0
【密码】-题解(C语言代码) 摘要:#include #include int judge(char str[]) { int len=strlen(str),i,m=0,n=0,p=0,q=0,sum=0; char…… 题解列表 2019年08月02日 0 点赞 0 评论 587 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:```c #pragma warning(disable:4996) #include int main() { int a; int w; int t1, t2, t3, …… 题解列表 2019年08月02日 0 点赞 0 评论 889 浏览 评分:0.0
汽水瓶-题解(Java代码) 摘要: ## 解题思路 **看题目可知汽水瓶每次都得循环判断,直到空的汽水瓶小于等于两瓶.** -------- ##### 代码+注释 public static void main…… 题解列表 2019年08月02日 0 点赞 0 评论 1465 浏览 评分:6.0
C语言训练-排序问题<2>-题解(C++代码) 摘要:```cpp #include #include using namespace std; bool cmp(int a,int b){ return a>b; } …… 题解列表 2019年08月02日 0 点赞 0 评论 645 浏览 评分:0.0
蓝桥杯算法提高VIP-计算时间-题解(C语言代码) 摘要:```c #include int main() { int n; int time,h,m,s; scanf("%d",&n); while(n--) { h=…… 题解列表 2019年08月01日 0 点赞 0 评论 870 浏览 评分:9.9
【明明的随机数】-题解(C++代码) 摘要:#### 原题链接:[【明明的随机数】](https://www.dotcpp.com/oj/problem1165.html "【明明的随机数】") #### 解题思路: **1、先排序…… 题解列表 2019年08月01日 0 点赞 0 评论 1240 浏览 评分:9.9
蓝桥杯算法提高VIP-笨小猴-题解(C语言代码) 摘要:```c #include int isPrime(int num) { int i; if(num…… 题解列表 2019年08月01日 0 点赞 0 评论 951 浏览 评分:0.0
奇偶的秘密-题解(C++代码)(没什么技巧) 摘要:没什么技巧,直接输入后简单判断奇偶就行了。我就直接上代码了! 程序实现: ```cpp #include using namespace std; int f(int n) { …… 题解列表 2019年08月01日 0 点赞 0 评论 1134 浏览 评分:0.0
优质题解 不容易系列2-题解(C++代码)【递归算法 & 错排公式秒杀】 摘要:#浅谈错排公式 ## 错排公式定义 一段序列中一共有n个元素,那么可知这些元素一共有n!种排列方法。假如在进行排列时,原来所有的元素都不在原来的位置,那么称这个排列为错排。而错排数所指的就是在一段…… 题解列表 2019年08月01日 0 点赞 0 评论 2666 浏览 评分:9.9