求最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m, n,min=1,max=1,i; cin >…… 题解列表 2024年02月08日 0 点赞 0 评论 457 浏览 评分:0.0
输出数字位数,并按位输出,再逆序输出。 摘要:解题思路:注意事项:参考代码:void main(){ int a; int i=0,divisor = 10; int array[5]; int trunNum = 0; …… 题解列表 2024年01月31日 0 点赞 0 评论 115 浏览 评分:0.0
1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int num = 0; cin >> num; s…… 题解列表 2024年01月23日 0 点赞 0 评论 348 浏览 评分:0.0
此题运用了stl中的vector容器 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ vector<int>v1; int num; cin>>n…… 题解列表 2024年01月20日 0 点赞 0 评论 146 浏览 评分:9.9
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n ,count = 0 ,i = 0 , a[5]…… 题解列表 2024年01月17日 0 点赞 0 评论 102 浏览 评分:9.9
利用递归求解数字的处理与判断 摘要:解题思路:首先须知,在c++中:1、当一个整数/10时,不会产生小数。即int/int != float。例如:123/10=12,而不是12.32、当一个整数%10时,产生的数是该数的末位。即:12…… 题解列表 2024年01月17日 0 点赞 0 评论 155 浏览 评分:9.9
正确的递归应该是啥样的?。。。 摘要:参考代码:#include<iostream> using namespace std; void print1(int a); void print2(int a); int main(…… 题解列表 2024年01月01日 0 点赞 0 评论 332 浏览 评分:9.9
递归函数法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int b[5],i=0,mask2=1,n=0;int fun(int a ,int w){ if…… 题解列表 2023年12月21日 0 点赞 0 评论 104 浏览 评分:0.0
C++利用指针重复遍历输出 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;int main(){ char str[20] =…… 题解列表 2023年12月21日 0 点赞 0 评论 113 浏览 评分:0.0
【基础】思维数字的处理与判断 摘要:解题思路:按照题目给的限制不超过5位数进行解答可以使用if-else if进行解答先给定范围判断为几位数,得出结论后进行单个数字拆解,最后做一个逆序输出即可按照小白入门解法代码较多且比较磨人注意事项:…… 题解列表 2023年12月13日 0 点赞 0 评论 209 浏览 评分:10.0