1128: C语言训练-排序问题<1> 三行解决
摘要:解题思路:又是水的一题注意事项:不要直接输出列表,用for循环参考代码:a=list(map(int,input().split()))for i in range(len(a)): print……
还是喜欢简短的代码,哎哟看到长代码就心浮气躁这可肿么办哟
摘要:解题思路:就是一冒泡排序,多写的我的数据结构老师哈哈哈注意事项:参考代码:#include<stdio.h> int main(){ int a[4]; int temp; for……
C语言训练-排序问题<1>
摘要:#include<stdio.h>
int main(){
int arr[4];
for(int i=0;i<4;i++){
scanf("%d",&arr[i]);……
C++代码进行解题,思路可与C语言共享
摘要:解题思路:运用数组进行数据存储,遍历所有数组与每次参考的数组进行比较大小,再进行交换。注意事项:注意m的原数据重新覆盖#include <iostream>using namespace std;in……
1128: C语言训练-排序问题<1>
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[10];int main(){ for(int i=……
1128: C语言训练-排序问题<1>
摘要:解题思路:注意事项:参考代码://计数排序:以空间换时间#include <bits/stdc++.h>using namespace std;long long tong[100000];int m……
C语言训练-排序问题<1>
摘要:**思路:**
冒泡法
**代码:**
```c
#include
int main()
{
int a[10],i,j,t;
for(i=0;i……