The 3n + 1 problem (C++代码) 摘要:解题思路:求最大循环长度注意事项:参考代码:#include <iostream>#include <cstdio>using namespace std;int main(){int m,n;whi…… 题解列表 2018年08月02日 0 点赞 0 评论 611 浏览 评分:0.0
明明的随机数 (C语言代码) 摘要:解题思路:1.先对一组数进行排序这样相等的数会相邻,例如对样例进行排序, 15 20 20 32 40 40 67 89 300 400 2. …… 题解列表 2018年08月02日 0 点赞 0 评论 1213 浏览 评分:0.0
【明明的随机数】 (C语言代码) 方法简单,容易懂 摘要:解题思路:1.先对一组数进行排序这样相等的数会相邻,例如对样例进行排序, 15 20 20 32 40 40 67 89 300 400 2. …… 题解列表 2018年08月02日 0 点赞 0 评论 1694 浏览 评分:0.0
蓝桥杯算法提高VIP-高精度乘法 (C++代码)(压位 17ms) 摘要:解题思路: 压到极限的千万进制,也就是 7 位存一次。 想起来我以前写的朴素乘法,惨不忍睹。 &nbs 题解列表 2018年08月02日 1 点赞 0 评论 1410 浏览 评分:6.0
换硬币 (C++代码)本质是斐波那契数列 摘要://换硬币 #include <iostream> using namespace std; inline int fibo(int n){ if(n==0) return 1; if(…… 题解列表 2018年08月02日 0 点赞 0 评论 3015 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C++代码) (再写一种-.-) 摘要:#include "iostream" #include "cstdio" #include "algorithm" #include "cstring" using namespace st…… 题解列表 2018年08月02日 1 点赞 0 评论 1901 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C++代码) 摘要:解题思路: 逆序字符串转换 → 相加 → 进位 → 反向输出数组。#include "stdio.h" #include "string.h" const int …… 题解列表 2018年08月02日 1 点赞 0 评论 1253 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数 (C语言代码) 两种解题方法 摘要:解题思路: 第一种直接破解就不多说了 第二种:(复杂一点)例如四位数1000,是由10 00组成的,所有可以用两个循环来穷举他们四位数的组成注意事项:参考代码:穷举法。…… 题解列表 2018年08月02日 0 点赞 1 评论 3113 浏览 评分:9.2
【出圈】 (C++代码)按题目来写就好了 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int n,m,a[1001]; int main(){ while(cin>…… 题解列表 2018年08月02日 2 点赞 0 评论 1174 浏览 评分:9.3
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:先求最大公约数,再求最小公倍数注意事项:一开始是没有注意到最大公约数和最小公倍数之间的关系的参考代码:#include<stdio.h>int main(){ int da,xiao,…… 题解列表 2018年08月02日 0 点赞 0 评论 830 浏览 评分:0.0