题解 2905: 最大值和最小值的差

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

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){    int m,* a,i,max,min;    scanf("%d",……

最大值和最小值的差

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[10000],i; int max; int min; int difference; sc……

两种解法(sort和快速排序)

摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac……