1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:指两个或多个整数共有约数中最大的一个。计算方法:辗转相除法辗转相除法也称欧几里得算法,简单地说就是两个数相除的余数,再用两个数中较小的那个数再次与余数相除,依次循环,直到最后…… 题解列表 2021年12月25日 0 点赞 0 评论 504 浏览 评分:9.9
二级C语言-计负均正 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int n[20],m=0,c=0,sum=0; float avg; for(i=0;i<2…… 题解列表 2021年12月25日 0 点赞 0 评论 401 浏览 评分:0.0
编写题解 1162: 密码(python) 摘要:fh = ['~','!','@','#','$','%','^'] num = [s…… 题解列表 2021年12月25日 0 点赞 0 评论 311 浏览 评分:0.0
适合新手通俗易懂 摘要:解题思路:首先40的因子有1,2,4,5,8,10,20;先写一个for循环如果i对这些书取余等于零,结束本次循环。但是后面的4,8,10,20又是二的倍数即可省略,也可以理解10,20是5的倍数,因…… 题解列表 2021年12月25日 0 点赞 0 评论 573 浏览 评分:9.9
1718: 数据结构-堆排序-C语言 摘要:```c //堆排序 #include #include //堆的性质 由完全二叉树构成 …… 题解列表 2021年12月25日 0 点赞 0 评论 618 浏览 评分:9.9
素数求和----三种写法,思路相近,一个可AC,两个不可AC 摘要:```cpp //1.时间超限 //#include //#include //using namespace std; //int main(void) //{ // int n; …… 题解列表 2021年12月25日 0 点赞 0 评论 691 浏览 评分:9.9
1717: 数据结构-简单选择排序-C语言 摘要:```c //简单选择排序 #include #include void selectSort(int a[], int n); int main() { int n…… 题解列表 2021年12月25日 0 点赞 0 评论 555 浏览 评分:9.9
蛇形矩阵精简版 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc=new Scanner(System.in); int…… 题解列表 2021年12月25日 0 点赞 0 评论 327 浏览 评分:0.0
c++常规做法,一画图就很简单了 摘要:解题思路:画图,看一下注意事项:注意c++保留两位小数,和他的头文件参考代码:#include<iostream>#include<iomanip>using namespace std;int ma…… 题解列表 2021年12月25日 0 点赞 0 评论 631 浏览 评分:0.0
二级C语言-统计字符 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,zimu=0,shuzi=0,kongge=0,qita=0; char n[1000]…… 题解列表 2021年12月25日 0 点赞 0 评论 442 浏览 评分:0.0