1717: 数据结构-简单选择排序-C语言 摘要:```c //简单选择排序 #include #include void selectSort(int a[], int n); int main() { int n…… 题解列表 2021年12月25日 0 点赞 0 评论 505 浏览 评分:9.9
素数求和----三种写法,思路相近,一个可AC,两个不可AC 摘要:```cpp //1.时间超限 //#include //#include //using namespace std; //int main(void) //{ // int n;…… 题解列表 2021年12月25日 0 点赞 0 评论 642 浏览 评分:9.9
1718: 数据结构-堆排序-C语言 摘要:```c //堆排序 #include #include //堆的性质 由完全二叉树构成 …… 题解列表 2021年12月25日 0 点赞 0 评论 586 浏览 评分:9.9
适合新手通俗易懂 摘要:解题思路:首先40的因子有1,2,4,5,8,10,20;先写一个for循环如果i对这些书取余等于零,结束本次循环。但是后面的4,8,10,20又是二的倍数即可省略,也可以理解10,20是5的倍数,因…… 题解列表 2021年12月25日 0 点赞 0 评论 527 浏览 评分:9.9
编写题解 1162: 密码(python) 摘要:fh = ['~','!','@','#','$','%','^'] num = [s…… 题解列表 2021年12月25日 0 点赞 0 评论 265 浏览 评分:0.0
二级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 评论 359 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:指两个或多个整数共有约数中最大的一个。计算方法:辗转相除法辗转相除法也称欧几里得算法,简单地说就是两个数相除的余数,再用两个数中较小的那个数再次与余数相除,依次循环,直到最后…… 题解列表 2021年12月25日 0 点赞 0 评论 469 浏览 评分:9.9
链表之节点删除—题解(c语言代码) 摘要:解题思路:利用数组来进行求解注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int m,n,i,j,a[1000],b[10…… 题解列表 2021年12月25日 0 点赞 0 评论 452 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数(初学者) 摘要:解题思路:定义两个函数注意事项:定义函数写在主函数之后时,需要提前声明函数,否则报错。参考代码:#include"stdio.h" int max,min;void funcA(int a,int b…… 题解列表 2021年12月24日 0 点赞 1 评论 265 浏览 评分:9.9
2058: [STL训练]Who's in the Middle 摘要:把 n 个数先后压进向量,然后排序,最后直接用索引打印中位数。#include<bits/stdc++.h> using namespace std; int main(){ int…… 题解列表 2021年12月24日 0 点赞 0 评论 523 浏览 评分:9.9