题解 1128: C语言训练-排序问题(1)

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

c++排序问题

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<algorithm>int main(){ int a[4]={0}; in……

#用集合来排序

摘要:解题思路:注意事项:参考代码:package Dotcpp;import java.util.ArrayList;import java.util.Collections;import java.ut……

1128:两行代码

摘要:解题思路:注意事项:参考代码:for x in sorted([int(x) for x in input().split()]):     print(x, end=&#39; &#39;)……

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……