C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:先求最大公约数,再求最小公倍数注意事项:一开始是没有注意到最大公约数和最小公倍数之间的关系的参考代码:#include<stdio.h>int main(){ int da,xiao,…… 题解列表 2018年08月02日 0 点赞 0 评论 604 浏览 评分:0.0
蓝桥杯算法提高VIP-高精度乘法 (C++代码) 摘要:#include "iostream" #include "cstdio" #include "cstring" #include "algorithm" #include "iomanip"…… 题解列表 2018年09月15日 5 点赞 0 评论 1200 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C++代码) (再写一种-.-) 摘要:#include "iostream" #include "cstdio" #include "algorithm" #include "cstring" using namespace st…… 题解列表 2018年08月02日 1 点赞 0 评论 1332 浏览 评分:0.0
换硬币 (C++代码)本质是斐波那契数列 摘要://换硬币 #include <iostream> using namespace std; inline int fibo(int n){ if(n==0) return 1; if(…… 题解列表 2018年08月02日 0 点赞 0 评论 2244 浏览 评分:0.0
【明明的随机数】 (C语言代码) 方法简单,容易懂 摘要:解题思路:1.先对一组数进行排序这样相等的数会相邻,例如对样例进行排序, 15 20 20 32 40 40 67 89 300 400 2. …… 题解列表 2018年08月02日 0 点赞 0 评论 1238 浏览 评分:0.0
明明的随机数 (C语言代码) 摘要:解题思路:1.先对一组数进行排序这样相等的数会相邻,例如对样例进行排序, 15 20 20 32 40 40 67 89 300 400 2. …… 题解列表 2018年08月02日 0 点赞 0 评论 863 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:解题思路:求最大循环长度注意事项:参考代码:#include <iostream>#include <cstdio>using namespace std;int main(){int m,n;whi…… 题解列表 2018年08月02日 0 点赞 0 评论 478 浏览 评分:0.0
momoc::矩阵加法 (C语言代码)带图解释 摘要:解题思路:输入的时候,定义一个二维数组a[][]两个2*2矩阵如图 a[0][]表示第一个矩阵第一行a[2][]表示第二个矩阵第第一行所以a[0][]表示第一个矩阵第一行a[n][]表示第二个矩阵第一…… 题解列表 2018年08月02日 0 点赞 0 评论 633 浏览 评分:0.0
momoc:题解1654:蓝桥杯算法训练VIP-确定元音字母位置 (C语言代码) 摘要:解题思路:注意事项:把不存在元音字母的情况考虑进去 只要找到一个元音字母就退出循环参考代码:#include <stdio.h> #include <string.h>…… 题解列表 2018年08月02日 0 点赞 0 评论 1159 浏览 评分:0.0
The 3n + 1 problem (C++代码) 摘要:数字本身也正在运行次数类,所以最后的max要加1每次循环结束记得要k归0,最大值也要归零#include<iostream>using namespace std;int main() { long …… 题解列表 2018年08月02日 0 点赞 0 评论 494 浏览 评分:0.0