排序问题<1>(sort偷懒) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<algorithm> int main() { int…… 题解列表 2022年10月26日 0 点赞 0 评论 621 浏览 评分:9.9
题解 1128: C语言训练-排序问题<1>循环做法 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int a, b, c, d; scanf("%d %d %d %d", &a, &b,…… 题解列表 2023年01月11日 0 点赞 4 评论 1055 浏览 评分:9.9
LikeWater - 1128: C语言训练-排序问题<1> 摘要:####本题我采用了直接插入排序,并且附上了代码大家有需要可以自己提取,还有冒泡排序,简单选择排序,快速排序的代码在后面题目中我给大家附上! ```cpp #include #include…… 题解列表 2023年02月28日 0 点赞 1 评论 473 浏览 评分:9.9
快速排序法 摘要:解题思路:先创建一个数组,输入四个整数,再找随便找到数组其中的一个数值定义为x(我在这里找的时中间值),定义两个指针 i 和 j 分别指向数组的最左端和最右端。然后两个指针从两端开始向x扫描,当左指针…… 题解列表 2023年09月30日 0 点赞 0 评论 628 浏览 评分:9.9
1128: C语言训练-排序问题(1) 摘要:```cpp #include using namespace std; int px(int a[]){ for(int i=0;i>a[i]; sort(a,a+4); for(…… 题解列表 2024年08月01日 0 点赞 0 评论 694 浏览 评分:9.9
C语言训练-排序问题(1) 摘要:```c //冒泡排序 #include int main() { int a[4]; int i,j,s; for(i=0;i…… 题解列表 2024年09月26日 0 点赞 0 评论 663 浏览 评分:10.0