1025: [编程入门]数组插入处理 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; int main() { i…… 题解列表 2022年10月09日 0 点赞 0 评论 222 浏览 评分:0.0
邮资大小跟排列顺序无关 摘要:解题思路:邮资的大小跟排列顺序无关,只跟邮票总数、各类邮票数量有关注意事项:参考代码:#include<stdio.h> int main() { int sum=0; for…… 题解列表 2022年10月09日 0 点赞 0 评论 235 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数最简便题解(C语言代码) 摘要:解题思路: #####最大公约数 辗转相除法 用较大数除以较小数,再用出现的余数去除除数,再用出现的余数(第二余数)去除第一余数,如此反复,直到最后余数是0为止。最后为0,则除数为最大公约数。 …… 题解列表 2022年10月09日 0 点赞 0 评论 519 浏览 评分:9.9
暴力求解完数 摘要:解题思路:先判断是不是完数,输出元素注意事项:参考代码:方法一:#includeint main(){ int a; int n; int i,j; scanf("%d", &…… 题解列表 2022年10月09日 0 点赞 0 评论 318 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int fun1(int m,int n){ int p; while(n!=0)…… 题解列表 2022年10月09日 0 点赞 0 评论 281 浏览 评分:0.0
递归猴子吃桃 摘要:解题思路:将题目倒过来思考:第一天1个桃子 第二天2*(1+1)个桃子 第三天2*【2*(1+1)+1】个桃子.........由此我们可以得到递推公式fun(n)=2*[ fun(n…… 题解列表 2022年10月09日 0 点赞 0 评论 566 浏览 评分:9.9
1670: 拆分位数 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main() { int n = 0; cin >>…… 题解列表 2022年10月09日 0 点赞 0 评论 274 浏览 评分:0.0
1671: 小九九 摘要:解题思路:我偷懒了,面向结果编程注意事项:参考代码:#include <iostream> using namespace std; int main() { printf("1*…… 题解列表 2022年10月09日 0 点赞 0 评论 271 浏览 评分:0.0
1060: 二级C语言-同因查找 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main() { for (int i = 10; i <= 1…… 题解列表 2022年10月09日 0 点赞 0 评论 243 浏览 评分:0.0
1062: 二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main() { int a = 0, b = 0, c = 0…… 题解列表 2022年10月09日 0 点赞 0 评论 323 浏览 评分:0.0