[编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:一个主函数外加一个被调用函数,被调用函数中运用辗转相除法求最大公约数,主函数利用数学公式最小公倍数=a*b/最大公约数,求出最小公倍数。注意事项:被调用函数中使用辗转相除法时用while循环…… 题解列表 2024年10月20日 0 点赞 1 评论 957 浏览 评分:10.0
小卡拉米的示例 摘要:解题思路:注意事项:仔细一点就好了参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); int d; for(int i =…… 题解列表 2024年10月20日 1 点赞 0 评论 596 浏览 评分:10.0
最原始的方法 因为我只学到这 摘要:解题思路: 最原始的方法 肯定都看得懂注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(1<=(a/10000)&&(a…… 题解列表 2024年10月23日 5 点赞 0 评论 655 浏览 评分:10.0
1444: 蓝桥杯2014年第五届真题-斐波那契(python) 摘要: ### A矩阵分解示例  摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;constintN…… 题解列表 2024年10月23日 1 点赞 0 评论 337 浏览 评分:10.0
逆天解法,包得吃的。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d=0; char ch; while(~scanf("%d",&a)) { ch=(ge…… 题解列表 2024年10月24日 2 点赞 0 评论 830 浏览 评分:10.0
三角形 (三角形类动态规划模板) 摘要: #include #include using namespace std; int s[101][101]; int main(){ …… 题解列表 2024年10月24日 5 点赞 0 评论 726 浏览 评分:10.0
[编程入门]数组插入处理的一种比较简单的方法 摘要:解题思路1.找到新元素应该插入的位置。2.从该位置开始,将数组中的元素向后移动一个位置,为新元素腾出空间。3.将新元素插入到正确的位置注意事项:键盘第一次录入数组数据时for循环的次数不要搞错。遍历数…… 题解列表 2024年10月25日 1 点赞 0 评论 497 浏览 评分:10.0
母牛的故事c语言 摘要:#include <stdio.h> int fun(int n) { if(n<=3) { return n; } else { return f…… 题解列表 2024年10月25日 1 点赞 0 评论 2878 浏览 评分:10.0
利润计算c语言求解 摘要:解题思路:利用递归思想参考代码:#include <stdio.h> int func(int n); int main() { int n, result; scan…… 题解列表 2024年10月26日 14 点赞 1 评论 1845 浏览 评分:10.0