排序最简单代码Python 入门级别 摘要:解题思路:注意事项:参考代码:ls=list(map(int,input().split())) #将一串数处理后,放入列表ls.sort()for j in ls: print(j) …… 题解列表 2023年03月27日 0 点赞 0 评论 123 浏览 评分:0.0
简单的冒泡排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void bubblesort(int *a,int n){ bool fla…… 题解列表 2023年03月10日 0 点赞 0 评论 157 浏览 评分:0.0
c++解题思路 摘要: ```cpp #include #define N 10 using namespace std; int main() { int a[N]; int b=0; …… 题解列表 2023年03月07日 0 点赞 0 评论 164 浏览 评分:8.0
LikeWater - 1023: [编程入门]选择排序 摘要:####简单选择排序奉上!!!对于很多简单的排序我总是热衷于自己编写,那样对自己的能力提升很有帮助,并且对于排序算法的掌握也能醍醐灌顶,希望大家能参考! ```cpp #include #i…… 题解列表 2023年02月28日 0 点赞 1 评论 219 浏览 评分:9.9
两种方法编写题解 1023: [编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<iomanip>using namespace std;int main() { …… 题解列表 2023年01月13日 0 点赞 0 评论 135 浏览 评分:0.0
【编程入门】用函数实现冒泡排序(c语言代码) 摘要:解题思路:数组元素两两之间进行比较,较大的往后走,称为冒泡。 第一次循环完成后最大的数会走到数组最后面,第二大的数会走到倒数第二位,以此类推。 …… 题解列表 2022年12月25日 0 点赞 0 评论 169 浏览 评分:9.9
[编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; int secm(int x[],int y); for(…… 题解列表 2022年12月21日 0 点赞 0 评论 107 浏览 评分:0.0
编写题解 1023: [编程入门]选择排序 摘要:解题思路:找到最小值,和第一个元素交换参考代码: import java.util.Scanner; public class Main { public static void mai…… 题解列表 2022年12月19日 0 点赞 0 评论 141 浏览 评分:0.0
1023: [编程入门]选择排序 摘要:```cpp #include using namespace std; int main() { int i,a[10]; for(i=0;i…… 题解列表 2022年12月14日 0 点赞 0 评论 203 浏览 评分:9.9
1023: [编程入门]选择排序 摘要:```c #include const int NUM = 10; int main() { int i = 0,min=0,min_index=0; int a[11]; …… 题解列表 2022年11月14日 0 点赞 0 评论 195 浏览 评分:0.0