1715: 数据结构-折半插入排序-C语言 摘要:```c //折半插入排序 #include #include #define max 1000 void BiInsertsort(int a[],int len); int…… 题解列表 2021年12月24日 0 点赞 0 评论 886 浏览 评分:9.9
1716: 数据结构-快速排序-C语言 摘要:```c //快速排序 #include #include void quicksort(int a[], int first, int end); int partition(in…… 题解列表 2021年12月24日 0 点赞 0 评论 824 浏览 评分:9.9
题解 1389: 程序员的表白(python代码) 摘要:while True: try: num = int(input()) for i in range(num):   题解列表 2021年12月24日 0 点赞 0 评论 863 浏览 评分:9.9
栅格打印问题----两种写法,一种可AC,一种不可AC 摘要:```cpp //1.第一种为什么AC不了,无法理解 //#include //using namespace std; //int main(void) //{ // int a,b;…… 题解列表 2021年12月24日 0 点赞 0 评论 413 浏览 评分: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 评论 635 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数(初学者) 摘要:解题思路:定义两个函数注意事项:定义函数写在主函数之后时,需要提前声明函数,否则报错。参考代码:#include"stdio.h" int max,min;void funcA(int a,int b…… 题解列表 2021年12月24日 0 点赞 1 评论 318 浏览 评分: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 评论 508 浏览 评分:9.9
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:1.最大公约数:指两个或多个整数共有约数中最大的一个。计算方法:辗转相除法辗转相除法也称欧几里得算法,简单地说就是两个数相除的余数,再用两个数中较小的那个数再次与余数相除,依次循环,直到最后…… 题解列表 2021年12月25日 0 点赞 0 评论 523 浏览 评分:9.9
适合新手通俗易懂 摘要:解题思路:首先40的因子有1,2,4,5,8,10,20;先写一个for循环如果i对这些书取余等于零,结束本次循环。但是后面的4,8,10,20又是二的倍数即可省略,也可以理解10,20是5的倍数,因…… 题解列表 2021年12月25日 0 点赞 0 评论 593 浏览 评分:9.9
1718: 数据结构-堆排序-C语言 摘要:```c //堆排序 #include #include //堆的性质 由完全二叉树构成 …… 题解列表 2021年12月25日 0 点赞 0 评论 642 浏览 评分:9.9